hmb104 has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a very basic script using Net::OpenSSH to connect to some switches and extract some data. I have tried to use Net::SSH and it is really slow and it crashes my system. I have also tried to Expect before, but I really like to use the Net::OpenSSH module.
Is it possible to execute more than 1 command in 1 connection using this module?. Any ideas?
Also in the foreach loop, can I read from 2 arrays? Like
foreach (@arra1 || @arra2)?Thanks for the help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::OpenSSH to execute multiple commands
by toolic (Bishop) on Aug 24, 2012 at 19:40 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 20:16 UTC | |
by toolic (Bishop) on Aug 24, 2012 at 20:27 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 21:55 UTC | |
by aitap (Curate) on Aug 24, 2012 at 20:29 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 21:50 UTC | |
by Kenosis (Priest) on Aug 25, 2012 at 02:32 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 20:19 UTC |