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


 
Win a LAPTOP Computer and get your FREE KEYEMAIL.COM E-mail Account at  http://keye.com
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to