Hello all;
I am using the Net::Telnet module from CPAN, the problem srarts when i have diffrent prompt in the telnet server.
in the first example from CPAN:
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
I have two posibels prompts: abcd01-esme% or Enter Command [s=sef][c=clr][e=exit][R=Rep]:
I need any help.
Thanks.
I am using the Net::Telnet module from CPAN, the problem srarts when i have diffrent prompt in the telnet server.
in the first example from CPAN:
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
I have two posibels prompts: abcd01-esme% or Enter Command [s=sef][c=clr][e=exit][R=Rep]:
I need any help.
Thanks.