in reply to Reaped: Error for $stdout in Net::SSH::Perl
First check the exit status of the command and check whether the $stdout and $stderr variables defined and print the values.