sris has asked for the wisdom of the Perl Monks concerning the following question:
hi monks,
i am trying to access some files from one system to another system where i gave public ip to both
the systems,
programatically(in perl) using Net::Telnet i am trying to connect to the other system but i am not able to connect can u kindly help me
the Following code which i am trying to execute
use Net::Telnet; my $t = new Net::Telnet (Timeout => 100, Prompt => '/[^ <-]\>/' +, Errmode => "return") ; $username = "administrator"; $passwd = ""; $t->open("hostname"); $t->login($username, $passwd); @lines = $t->cmd('dir'); print "\n @lines";
20040624 Edit by Corion: Fixed code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Telnet - cant able to connect from public IP to public IP
by Abigail-II (Bishop) on Jun 24, 2004 at 11:40 UTC | |
by sris (Initiate) on Jun 24, 2004 at 11:56 UTC | |
by Abigail-II (Bishop) on Jun 24, 2004 at 12:06 UTC | |
by sris (Initiate) on Jun 24, 2004 at 12:39 UTC | |
by Abigail-II (Bishop) on Jun 24, 2004 at 12:48 UTC | |
|
Re: Net::Telnet - cant able to connect from public IP to public IP
by gri6507 (Deacon) on Jun 24, 2004 at 12:46 UTC | |
|
Re: Net::Telnet - cant able to connect from public IP to public IP
by jdavidboyd (Friar) on Jul 01, 2004 at 14:33 UTC |