C
colintelfer
I get this error when running my small test program...
timed-out waiting for login prompt
....
$host = '192.168.100.251';
$port = '24';
$username = 'admin';
$password = '';
$prompt = '/User:/';
$session = new Net::Telnet
(
Timeout => 5,
Prompt => $prompt
);
$session->input_log("inputlog.txt");
$session -> open(Host => $host,Port => $port);
$session -> login($username, $password);
....
Here is the ouput from inputlog.txt:
(Sys)
User:
I am guessing there is a problem with prompt, but I have tried a few
different matches without success...
Any help?
Thanks!
timed-out waiting for login prompt
....
$host = '192.168.100.251';
$port = '24';
$username = 'admin';
$password = '';
$prompt = '/User:/';
$session = new Net::Telnet
(
Timeout => 5,
Prompt => $prompt
);
$session->input_log("inputlog.txt");
$session -> open(Host => $host,Port => $port);
$session -> login($username, $password);
....
Here is the ouput from inputlog.txt:
(Sys)
User:
I am guessing there is a problem with prompt, but I have tried a few
different matches without success...
Any help?
Thanks!