Net-SSH2 - how to get an error message when channel exec function returns no ouput

Posted on Thu Jan 10 06:55:34 2008 by sameerbhasin
how to get an error message when channel exec function returns no ouput
Hey Is any one their who can tell that when a command is executed by
$channel->exec('cmd');
If that command brings out and error output, how to catch that error message and print on the console. Thanks & Regards Sameer Bhasin
Write a response