Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by salva (Abbot)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-06-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (631 votes). Check out past polls.