
zale1
Deleted
Jun 1, 2001, 10:33 AM
Post #1 of 4
(374 views)
|
|
telnet using perl program
|
Can't Post
|
|
This has more info than the previous post. (I wish I could delete the previous one, anyway...) I'm trying to telnet from a solaris 2.7 machine to an AIX 4.3 machine. I am using a perl program to do this. After the first command, the screen just sorta hangs there, until I type control C. Any insight? The first command is displayed and I assume goes through, but nothing happens unless I press the control C and cancel the process. Then I am returned to my original prompt. 10 $command="telnet aixbox\r\n";$ 11 &ExecuteAndPrint ($command);$ 12 $command="root\r\n";$ 13 &ExecuteAndPrint ($command);$ 14 $command="password\r\n";$ The numbers and the dollar signs at the end are just a display in vi text editor. (you probably knew that) I tried \r\n \n\r \012\015 \012\012\015 \015\012 at the end of the command, from someone's suggestions Somehow there must be a way to send a command, have the other machine acknowledge it and then have it accept a new command. when I type a control C (to break out of this) I get messages for each line like this one for the password line ": No such file or directory at zaleudb.pl line 5. password zaleudb.pl is the perl program I am executing. The word "password" (changed for security purposes) is the password I tried to send. Thanks
|