Hello all;
I am using the Net:Telnet modul from CPAN.
The prompt i recieve is #.
I tried to match the prompt like this:'/\# $/'
With no succsess.
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/\# $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
Thanks for help.
I am using the Net:Telnet modul from CPAN.
The prompt i recieve is #.
I tried to match the prompt like this:'/\# $/'
With no succsess.
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/\# $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
Thanks for help.