Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Simultaneous SSH sessions with Parallel::ForkManager + Expect

by 5mi11er (Deacon)
on Mar 26, 2009 at 21:59 UTC ( #753525=note: print w/ replies, xml ) Need Help??


in reply to Simultaneous SSH sessions with Parallel::ForkManager + Expect

There's nothing inherent about SSH that will keep you from running more than one command at a time. But calling ssh with a command executes the command and then exits, I'm guessing that's what you are doing when you call the perl command, so the connection is gone by the time you try to call the getOSType function in the "combined script".

Since getOSType and getPrompt aren't provided above, all we can do is guess at what's going on, which makes the probability of getting helpful answers drop close to zero.

-Scott


Comment on Re: Simultaneous SSH sessions with Parallel::ForkManager + Expect

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-29 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls