in reply to Telnet & Text Capture to file
As I already told you in the chatterbox, the safest and sanest way is to set up passwordless keys on the target machines and then to simply use ssh to do your bidding:
my $command = 'cat /etc/passwd'; for my $machine (@machines) { my @output = `ssh '$machine' $command`; ... }
If ssh is out of the game, consider using rsh instead - it's mostly like ssh (if I remember correctly).
If that's also not an option, consider Net::Telnet or simply use IO::Socket to connect to port 23 and pretend to be a dumb terminal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Telnet & Text Capture to file
by sonicscott9041 (Novice) on Jul 15, 2009 at 20:33 UTC | |
by Corion (Patriarch) on Jul 15, 2009 at 20:42 UTC | |
by sonicscott9041 (Novice) on Jul 15, 2009 at 20:47 UTC |