|
hi,
i am using Net::Telnet module to run command on the remote server
following is the code
print $t->cmd("ls /tmp");
my @lines = $t->cmd( 'ls /tmp' );
print "@lines\n";
but none of the above code , prints the output of command on the console of the server from where the script is being executed (i mean on the local server).
i use dump_log as well as input_log to debug and log-file contains, successful connection to remote host and the output of command.
however, on the local server console , the output is not getting printed.
what cud be the problem.
plz suggest.
Thanks. |