1

Need help on Perl telnet Script

view story
linux-howto

http://www.unix.com – Hi... Iam running the following Perl Script for telnet and running the commands.The script is exited without any errors.But the telnet commands are not executed,Please help me to resolve my problem. My telnet session #telnet 9.121.61.2 2013 Trying 9.121.61.2... Connected to 9.121.61.2. Escape character is '^]'. Perl Script #!/usr/bin/perl -w use Net::Telnet(); $telnet = new Net::Telnet(Timeout =>60, Errmode=>'die', Prompt => '/[\$#%:>] $/'); $telnet->open('9.121.61.2 2013'); print ("\ntelnet is successful\n (HowTos)