Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 perusing the Monastery: (15)
As of 2015-07-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls