cosmicsoup has asked for the wisdom of the Perl Monks concerning the following question:
sub create_telnet { my( $host, $pass, ) = @_; my ( $user, $passwd, $prompt ) = read_password_file( $host, $pass +); my $telnet = new Net::Telnet (Timeout => 20, Binmode => 0, Prompt => ("/").(quotemeta $prompt). +("/"), Output_log => $mydump, Errmode => 'die', ); $telnet->open($host); $telnet->login( $user, $passwd ); return $telnet; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Telnet Command Prompt Help
by castaway (Parson) on Jan 29, 2003 at 15:26 UTC | |
by cosmicsoup (Beadle) on Jan 29, 2003 at 15:51 UTC | |
by JSchmitz (Canon) on Jan 29, 2003 at 16:20 UTC | |
|
Re: Telnet Command Prompt Help
by Gilimanjaro (Hermit) on Jan 29, 2003 at 16:15 UTC | |
|
Re: Telnet Command Prompt Help
by SysApe9000 (Acolyte) on Jan 29, 2003 at 17:27 UTC |