|Welcome to the Monastery|
NET::OpenSSH to execute multiple commandsby hmb104 (Sexton)
|on Aug 24, 2012 at 19:25 UTC||Need Help??|
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? Likeforeach (@arra1 || @arra2)?
Thanks for the help.