Hi,
And why not using something like a dispatch table, so things that don't need to be interactive uses the $ssh->cmd inside of the subroutines that handles the command, and for the ones you need interactive, you just use the $ssh->shell with Expect. Take a look at the shell method on Net::SSH::Perl.
Regards,
In reply to Re^3: IO::Pty, Net::Telnet and SSH
by fmerges
in thread IO::Pty, Net::Telnet and SSH [SOLVED]
by gonza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |