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);
In reply to telnet on sco using perl by yadavdipak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |