Tuesday, 15 June 2010

perl - how to wait for output using Net::OpenSSH and wait for ssh->capture() -



perl - how to wait for output using Net::OpenSSH and wait for ssh->capture() -

i have script ssh remote host using net::openssh, send command on remote host , capture , set array, works if scheme not buys or should there not lots of files if there many files match , scheme buys escape due timeout, putting timeout value not sufficient don't know how much take, there way can right..thanks in advance..

utilize net::openssh; # code login remote host using ssh such $ssh = net::openssh->new() $ls = $ssh->capture({timeout => 1}, "find / -iname '*.pm'");

thanks again

perl openssh

No comments:

Post a Comment