
Yuma
New User
Feb 20, 2010, 1:57 PM
Post #1 of 6
(1154 views)
|
|
Net::SSH::Perl multiplexing multiple sessions
|
Can't Post
|
|
I want to automate an annoying task that involves logging on to multiple machines and running various coordinated commands. I did a little searching and Net::SSH::Perl seems like it can help, but the ->cmd() function seems to start a new session each time. Since I have to coordinate commands between machines I can't just use ->cmd() to run multiple commands on a single machine at once, I need to run a command on machine A, then B, then A again, then C, and so on. There's a ->shell() function but when I call it I see the remote shell in my terminal, which is not what I want. According to the docs ->shell() routes the remote STD* to mine. Can I somehow redirect that? Does anyone know how I can get around this or if there's another way to do what I want?
|