|
I tried the following code.
But the output of who command is not shown.
use Net::Telnet ();
$t = new Net::Telnet (Telnetmode => 0,Timeout => 60,Errmode=>'return');
$username="root";
$passwd="root123";
$t->open("10.145.13.227");
$t->login($username, $passwd);
print"successfully loggedin";
@lines = $t->cmd("who");
print @lines;
please guide me.
Thanks,
susintha
|
|
|
|
|
|
|
// |