Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works

by salva (Canon)
on Aug 01, 2014 at 06:59 UTC ( [id://1095851]=note: print w/replies, xml ) Need Help??


in reply to Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works

And where does it get stuck?

Anyway, try replacing Net::SSH::Perl and Net::SCP::Expect usage by Net::OpenSSH.

  • Comment on Re: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works

Replies are listed 'Best First'.
Re^2: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
by Technext (Acolyte) on Aug 01, 2014 at 08:47 UTC
    It gets stuck only when it's invoking a wrapper script present on remote machine. SCP works fine.
      Then, connect to the remote server in parallel and inspect what the wrapper script is doing (for instance, using strace or a debugger), it should be waiting for something.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found