There is one issue that i noticed today. If i use the following code, it dies after printing error message. Obviously, the stdout will not be printed
Problem is when i reverse the lines as shown below, it prints the output and then dies but does not print the error message.die "Error: $errput\n" if $errput; printf "Output: $stdout\n" if $stdout;
How can i make it print the stdout and the error message both?printf "Output: $stdout\n" if $stdout; die "Error: $errput\n" if $errput;
In reply to Re^3: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
by Technext
in thread Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
by Technext
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |