pdesh81 has asked for the wisdom of the Perl Monks concerning the following question:
I have opened a telnet session from perl script, it looks like opended fine, but i am not able to see the FTP window, can any any one help me in keeping pined FTP window below is the script that i used
## -------------- use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); $t->open("192.168.0.1"); $t->waitfor('/login: $/i'); $t->print('root'); $t->waitfor('/Password:$/i'); $t->print('root'); ##-------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: telnet session from perl scripts
by Corion (Patriarch) on Jun 17, 2011 at 08:04 UTC |