Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Is Net::SSH::Expect a thread-safe module?

by salva (Abbot)
on Jan 26, 2012 at 12:38 UTC ( #950081=note: print w/replies, xml ) Need Help??


in reply to Re: Is Net::SSH::Expect a thread-safe module?
in thread Is Net::SSH::Expect a thread-safe module?

In my experience it is never safe to use threads (or forks) with any form of SSH if you plan to create a connection before creating child threads, and then using that connection in multiple children.

Net::OpenSSH supports sharing the connection between different threads or processes.

  • Comment on Re^2: Is Net::SSH::Expect a thread-safe module?

Replies are listed 'Best First'.
Re^3: Is Net::SSH::Expect a thread-safe module?
by ashok.g (Beadle) on Jan 27, 2012 at 11:48 UTC
    Wow....!

    Net::OpenSSH is pretty awesome. I can use threads with this module and able to complete my tasks as well.

    Thank you very much salva and PerlMonks once again.

    Thanks,
    Ashok
Re^3: Is Net::SSH::Expect a thread-safe module?
by Anonymous Monk on Jan 26, 2012 at 13:23 UTC
    it hardcodes /dev/nul
      So...?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2016-08-30 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (419 votes). Check out past polls.