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...?