in reply to Automate remote console sessions.
I think expect is pretty good since it hides the tty details. But if you are only executing a few commands and they aren't text menu/field monsters, try the Net::SSH (uses your system's ssh) or Net::SSH::Perl (pure-perl SSH, no sys executable needed) modules. Haven't tried it myself but it looks like it's designed with that usage in mind.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Automate remote console sessions.
by Yary (Pilgrim) on Jun 10, 2010 at 22:01 UTC |