in reply to Net::SCP::Expect causes error in return code
Another thing you could do is try to see what the command is saying when it fails. You could replace
withmy $cmd = qq{rpm -qa | grep cluster};
(replace &> with something else if bash is not your default shell) Then look at /tmp/bad_call to see what it reported.my $cmd = qq{rpm -qa &> /tmp/bad_call };
fnord
|
|---|