yadavdipak has asked for the wisdom of the Perl Monks concerning the following question:
I am new to Perl. I am trying to do telnet on SCO unix using Net::Telnet module of perl. But I am unable to do so. The same piece of code is working good for solaris server. I don't know what extra configuration settings I have to do for SCO.
Plz help me on this matter.
thanks,
-dipak
Here is the code :
<small edited by castaway, added tags.$host = new Net::Telnet (Timeout => 30, Prompt => '/[%#>] $/'); $prev = $host->errmode("return"); $host->open ($server_name); $host->login($user_name, $pass_word); $$msg = $host->errmsg; $prompt = '_tibPrompt_'; $host->prompt("/$prompt\$/"); $host->cmd("set prompt = '$prompt'"); ####### Get the disk usage. $dsk_cmnd = "df -k"; @disk_result = $host->cmd($dsk_cmnd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: telnet on sco using perl
by BUU (Prior) on Oct 02, 2003 at 22:17 UTC | |
|
Re: telnet on sco using perl
by JamesNC (Chaplain) on Oct 03, 2003 at 12:11 UTC |