Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Net::SSH::Perl and simaltaneous connections

by eXile (Priest)
on Aug 25, 2005 at 04:52 UTC ( [id://486429]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found