i had tried this code :
$obj = Net::Telnet->new("10.11.11.11");
$obj->login("csc","csccsc");
lines = $obj->cmd(String => "ls
-l");
print lines;
this was working fine and it was listing all the files in
the present
directory but when i tried
$obj = Net::Telnet->new("10.11.11.11");
$obj->login("csc","csccsc");
lines = $obj->cmd(String => "service
portmap restart");
print lines;
it gave the error -bash: servie: command not found
can i get some help ??? how do i rectify this error
|