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.
In reply to NET::OpenSSH to execute multiple commands by hmb104
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |