Re: How to catch error (or exit) when Receive hang - WeOnlyDo Discussion board

Re: How to catch error (or exit) when Receive hang (General questions)

by woddrazen, Wednesday, November 05, 2008, 00:03 (5864 days ago) @ novanstar

Hi,


You can try with Execute Method. Something like this:
[code]$ssh->WaitFor('weonlydo@linux:~$');
$ssh->{DataReady} = 0;
print $ssh->Execute( ls -al\n ,'weonlydo@linux:~$');
$ssh->Disconnect();[/code]

Drazen


Complete thread: