Hi there, I always get this error when my script is executed "timed-out waiting for command prompt at ./logout.pl line 13"
what i only want is to execute a command on a remote server and see if it did the right way. It is like executing my script.pl and check if the result. I think there is something missig or wrong on my script. Please let me know. The script should accept input from the command line. The script is below : ############### #!/usr/bin/perl -w #file logout.pl #written by Ing. Joe Echavarria use strict; use Net::Telnet; $command = <STDIN>; chomp($commnad); use constant HOST=> 'linux'; use constant USER=> 'jechavarria'; use constant PASS=> 'linux'; my $telnet = Net::Telnet->new(HOST); $telnet->login(USER,PASS); my @lines = $telnet->cmd($command); print @lines; $telnet->close; ########## " __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]