djkumar72 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use Net::Telnet (); my $telnet; my $output; $telnet = new Net::Telnet->new( Timeout=>20,Prompt => '/[\$%#>] $/'); die &Log_Message("Can't open telnet session to the remote host") unles +s $telnet; $output = $telnet->open("hppi003"); print $output; $output = $telnet->login("astwrk2","unix11"); print $output; print "Logged into the system \n"; print "End";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Telnet
by blazar (Canon) on Jul 04, 2005 at 09:46 UTC |