Net::Telnet prompt issue
Posted on 2004-10-05
I have a perl script that is using Net::Telnet and it gets as far as teh login prompt.
the session is a specific interface and retruns the following promtps when I telent from any host.
Enter User Name:
Enter User Password:
it my current script, it opens the socket and times out waiting for the proper login prompt.
how can i set my prompt to make this work.
here is a snipit of my code:
use Net::Telnet ();
my $username = "fred";
my $passwd = "flintstone";
my $ip = 10.1.1.1;
my $t = new Net::Telnet(Prompt => '/Enter User Name:/ ');
any help here is greatly appreciated.