in reply to Net::SSH::Perl and simaltaneous connections

No idea on what the exact problem is here, but i can give you a suggestion on how i'd go about trying to solve it:

Try replacing Net::SSH::Perl, with Expect, where in Expect you can use your local ssh-client. In the tutorials section there's a good intro into using Expect.

If that solves your problem, it's likely a problem in Net::SSH::Perl.

  • Comment on Re: Net::SSH::Perl and simaltaneous connections

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl and simaltaneous connections
by anthski (Scribe) on Sep 02, 2005 at 01:47 UTC
    Sorry for the few days delay in response, but in case someone else comes across this thread and a similar problem, I rewrote my script to simply do a `ssh ...` instead of Net::SSH::Perl and this worked fine when running under Parallel::ForkManager. I can now perform multiple simaltaneous ssh requests against a given host.

    It's also far quicker (a matter of a second to execute versus 30+ seconds for Net::SSH::Perl).

    Perhaps not as smooth as using the complete perl solution, but it works.

    cheers,
    Anth