Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Telnet connection problem
by marto (Cardinal) on Jun 23, 2006 at 09:53 UTC | |
| |
|
Re: Telnet connection problem
by Hue-Bond (Priest) on Jun 23, 2006 at 09:48 UTC |