After runnig this program its giving an error as 'undefined subroutine &new::telnet called at line 3. Suggest me so, that i can proceed further in my work.#!/bin/perl -w use Net::Telnet; $telnet=new::Telnet(Timeout=>60,Error=>'die',Prompt=>'/ksh\$ $/i'); $telnet->open('192.168.10.220'); $telnet->login('patil','patil'); @lines = $telnet->cmd('who'); print "@lines\n";
In reply to Telnet connection problem by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |