Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl - running remote script doesn't return back the control to perl.

by salva (Monsignor)
on Mar 21, 2014 at 09:03 UTC ( #1079216=note: print w/ replies, xml ) Need Help??


in reply to Perl - running remote script doesn't return back the control to perl.

Net::SSH::Expect is not completely reliable because of the way it sends commands to the remote machine talking to a shell. Try using Net::OpenSSH instead.

In any case, a likely cause for your problem is that the restart.sh script may leave behind processes with some of their stdio streams attached to the SSH channel. In that case the ssh process will wait for those processes to close their streams before returning control.


Comment on Re: Perl - running remote script doesn't return back the control to perl.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1079216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-09-15 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (146 votes), past polls