![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webpage to Telnet via Perl and Expect: Telnet problem? | jondo | Shell Programming and Scripting | 1 | 07-22-2008 12:35 AM |
| telnet problem | Rajat | UNIX for Dummies Questions & Answers | 2 | 07-11-2008 07:47 AM |
| telnet problem in aix | vjm | AIX | 2 | 08-23-2005 02:35 AM |
| telnet problem | rahul72 | IP Networking | 3 | 08-05-2002 08:20 AM |
| telnet problem | rahul72 | Filesystems, Disks and Memory | 1 | 08-02-2002 05:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem with Net::Telnet
#!/usr/bin/perl
use strict; use warnings; use Net::Telnet (); my $t = new Net::Telnet (Timeout => 10, Prompt => '/.*(#|>|\))\s*$/'); my $remote_host='home'; $t->open(Host => $remote_host, Port =>23); $t->login('root', 'pass'); the error that I get when I run this file from the command prompt is problem connecting to "home", port 23 :unknow error at line 9. I cant seem to figure out whats wrong with it |
|
||||
|
make sure you have a remote server to connect to, i hope its not really "home" (or is it?)
make sure remote server is configured to allow root login. make sure telnetd is running on the remote server make sure your prompt is correct |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|