RE: Having problems with Net::Telnet
I should have included that in my original message, I copied this from a website: use Net::Telnet(); $telnet = new Net::Telnet (Timeout = 10, Errmode = 'die'); $telnet -open('198.207.193.112'); $telnet -waitfor('Password:') -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:21 PM To: Lupi, Guy; [EMAIL PROTECTED] Subject: RE: Having problems with Net::Telnet Show us the code? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lupi, Guy Sent: Monday, March 03, 2003 5:22 PM To: '[EMAIL PROTECTED]' Subject: Having problems with Net::Telnet Please excuse me if this is an extremely basic question, this is my first post and I am a beginner, but I can't seem to get Net::Telnet to work. I am getting the following error when I try to run a script using the Net::Telnet module. Can't locate object method new via package Net::Telnet (perhaps you forgot t o load Net::Telnet?) at telnet.txt line 2. I have looked on the net, and I found some advice, but nothing I do seems to work. I ran the libnet.cfg file, and ran ppm to install net-telnet, and telnet.pm is definitely in my Perl installation. I think my code is correct, I copied it exactly from a website and simply replaced their IP address with my own. I am running ActivePerl on a Windows XP workstation. I am a beginner, so be gentle :). Guy H. Lupi ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Having problems with Net::Telnet
I did that, here is the output that was returned. C:\Perlppm install Net::Telnet Searching for 'Net::Telnet' returned multiple results. Using 'search' instead... Searching in Active Repositories 1. Net-Telnet [3.03] Interact with TELNET port or other TCP ports 2. Net-Telnet-Cisco [1.10] automate Cisco management 3. Net-Telnet-Netscreen [1.01] interact with a Netscreen firewall C:\Perlppm install Net-Telnet Note: Package 'Net-Telnet' is already installed. Install 'Net-Telnet' version 3.03 in ActivePerl 5.8.0.804. Successfully installed Net-Telnet version 3.03 in ActivePerl 5.8.0.804. Then I tried to run my script and I got the same error message. -Original Message- From: Thomas_M [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:06 AM To: Lupi, Guy Cc: Perl-Win32-Users (Perl-Win32-Users) Subject: RE: Having problems with Net::Telnet Can't locate object method new via package Net::Telnet (perhaps you forgot t o load Net::Telnet?) at telnet.txt line 2. I'm not sure why nobody told you this yet, but this error means you need to install the Net::Telnet module. From a command prompt, type ppm install Net::Telnet. -- Mark Thomas[EMAIL PROTECTED] Internet Systems Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Having problems with Net::Telnet
Lupi, Guy wrote: I did that, here is the output that was returned. C:\Perlppm install Net::Telnet [snip] Successfully installed Net-Telnet version 3.03 in ActivePerl 5.8.0.804. Then I tried to run my script and I got the same error message. [snip] FYI, I tried the snip on 98se, 5.6 build 633. All ok. I'd suspect either winXP (which is always causing odd problems) or 5.8 ASperl... though the module is 'pure perl' right? I don't see anything new for the 5.8 ppd. Good luck! -- mike higgins ^ ^ -|- (.)__ the world is a big box of paints. __ __ and others, the canvas we're dealt. | | - XTC _/ \_ ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Having problems with Net::Telnet
Title: RE: Having problems with Net::Telnet I'm using perl, v5.6.1 built for cygwin-multi under Windows2000 Pro SP2 and found the following if it helps at all. doesn't seem to bear on your original problem though! #just a thought but shouldn't this line: $telnet -waitfor('Password:') #instead read: $telnet -waitfor('/Password:/i'); I get the following error when it's not: bad match operator: opening delimiter missing: Password: at ./temp.pl line 27
RE: Having problems with Net::Telnet
Show us the code? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lupi, Guy Sent: Monday, March 03, 2003 5:22 PM To: '[EMAIL PROTECTED]' Subject: Having problems with Net::Telnet Please excuse me if this is an extremely basic question, this is my first post and I am a beginner, but I can't seem to get Net::Telnet to work. I am getting the following error when I try to run a script using the Net::Telnet module. Can't locate object method new via package Net::Telnet (perhaps you forgot t o load Net::Telnet?) at telnet.txt line 2. I have looked on the net, and I found some advice, but nothing I do seems to work. I ran the libnet.cfg file, and ran ppm to install net-telnet, and telnet.pm is definitely in my Perl installation. I think my code is correct, I copied it exactly from a website and simply replaced their IP address with my own. I am running ActivePerl on a Windows XP workstation. I am a beginner, so be gentle :). Guy H. Lupi ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs BEGIN:VCARD VERSION:2.1 N:Robnett;Scot FN:Scot Robnett ORG:inSite Internet Solutions NOTE;ENCODING=QUOTED-PRINTABLE:Low cost web hosting, 50 MB disk space, easy and intuitive browser-based pag= e builder and control panel, 2000 product shopping cart, contact management,= site promotion, and free tech support:=0D=0A=0D=0A http://www.mawebcenters.= com/insite2000 TEL;WORK;VOICE:(815) 206-2907 TEL;CELL;VOICE:(815) 790-9687 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Square West Center=0D=0A454 W. Jackson St.;Woodstock;IL;60098;United State= s of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Square West Center=0D=0A454 W. Jackson St.=0D=0AWoodstock, IL 60098=0D=0AUni= ted States of America URL;HOME:http://www.insiteful.tv URL;WORK:http://www.insiteful.tv EMAIL;PREF;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] REV:20030223T194915Z END:VCARD
Re: Having problems with Net::Telnet
Lupi, Guy wrote: Please excuse me if this is an extremely basic question, this is my first post and I am a beginner, but I can't seem to get Net::Telnet to work. I am getting the following error when I try to run a script using the Net::Telnet module. Can't locate object method new via package Net::Telnet (perhaps you forgot t o load Net::Telnet?) at telnet.txt line 2. [snip] Since I see the error occured at line 2, I think there are lines missing. First, 'use strict;' ... line 1 'use warnings;' ... line 2 There's definitely a problem. ;-) However, unless you *don't* have 'use Net::Telnet;' as line 1, you should post the code. -- mike higgins ^ ^ -|- (.)__ the world is a big box of paints. __ __ and others, the canvas we're dealt. | | - XTC _/ \_ ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Having problems with Net::Telnet
Did you install the module using PPM? What platform are you running it on? -Original Message- From: Lupi, Guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 7:22 AM To: '[EMAIL PROTECTED]' Subject: Having problems with Net::Telnet Please excuse me if this is an extremely basic question, this is my first post and I am a beginner, but I can't seem to get Net::Telnet to work. I am getting the following error when I try to run a script using the Net::Telnet module. Can't locate object method new via package Net::Telnet (perhaps you forgot t o load Net::Telnet?) at telnet.txt line 2. I have looked on the net, and I found some advice, but nothing I do seems to work. I ran the libnet.cfg file, and ran ppm to install net-telnet, and telnet.pm is definitely in my Perl installation. I think my code is correct, I copied it exactly from a website and simply replaced their IP address with my own. I am running ActivePerl on a Windows XP workstation. I am a beginner, so be gentle :). Guy H. Lupi ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs