hi, i am using Net::Telnet module to connect to remote hosts i able to to successfully connect to remote host and run the "ls" command but the issue is , the output of command is not getting printed to scalar variable
use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); $t->open("abc"); $t->login($username, $passwd); @lines = $t->cmd("ls"); print @lines; please suggest. regards, irfan