Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by salva (Monsignor)
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?
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...?
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

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 wandering the Monastery: (6)
As of 2014-09-01 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (15 votes), past polls