RE: Net::Telnet

2005-06-02 Thread John Serink
I have heard the MS Telnet server was fixed on XP (and that would seem then on 2003) but have not tested it. I know Net::Telnet did NOT work on Win2K pro, I wasted about a week trying to get it to. Worked fine on NT 4.0 though. Cheers, John > -Original Message- > From: Aaron

RE: Net::Telnet

2005-06-02 Thread John Serink
Correct. > -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 02, 2005 8:35 PM > To: John Serink; Rajesh Vattem; > perl-win32-users@listserv.ActiveState.com > Subject: RE: Net::Telnet > > > John wrote: >

RE: Net::Telnet

2005-06-02 Thread Aaron.Tesch
I have had no issues using Net::Telnet on XP Pro that are using the MS Windows telnet server. Stating that "it does not work" on Windows server/workstations is not entirely true. Try starting the MS Windows telnet server, and using it. - Aaron -Original Message- Fr

RE: Net::Telnet

2005-06-02 Thread Thomas, Mark - BLS CTR
John wrote: > its does not work on these servers: > Windows 2000 Pro, > Windows XP pro, > Windows 2000 server pro, > Windows server 2003. > > Reason is, the new windows server uses ANSI codes and you CAN'T turn > them off like on a UNIX box. These ANSI codes garb

RE: Net::Telnet

2005-06-01 Thread Thomas, Mark - BLS CTR
When Net::Telnet doesn't do what you expect, 99% of the time it's a prompt issue. Did you set the prompt? The default prompt works with the unix command line, but you'll have to set it to work with your application. I highly recommend using the debugging options; they can help

RE: Net::Telnet

2005-06-01 Thread Peter Eisengrein
> Hi, > I am using this module (Net::Telnet) downloaded from CPAN, > for a small > interactive program in which I telnet to a particular host, > login and give > some commands (based on the options you get). I am not able > to do this. I am > able to login but whatever

Net::Telnet

2005-06-01 Thread Rajesh Vattem
Hi, I am using this module (Net::Telnet) downloaded from CPAN, for a small interactive program in which I telnet to a particular host, login and give some commands (based on the options you get). I am not able to do this. I am able to login but whatever I do after that doesn't seem to h

RE: Using Net-telnet to connect via ssh

2005-04-04 Thread GT BAUTISTA, Rodel D.
al Message- From: Sisyphus [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 6:29 AM To: GT BAUTISTA, Rodel D.; perl-win32-users Subject: Re: Using Net-telnet to connect via ssh - Original Message - From: "GT BAUTISTA, Rodel D." <[EMAIL PROTECTED]> To: Sent:

Re: Using Net-telnet to connect via ssh

2005-03-31 Thread Sisyphus
- Original Message - From: "GT BAUTISTA, Rodel D." <[EMAIL PROTECTED]> To: Sent: Thursday, March 31, 2005 5:05 PM Subject: Using Net-telnet to connect via ssh Hi to All, Is there a windows binary distribution of IO-Tty (or IO-Pty)? I can't install the one I down

Using Net-telnet to connect via ssh

2005-03-30 Thread GT BAUTISTA, Rodel D.
Title: Message Hi to All,   Is there a windows binary distribution of IO-Tty (or IO-Pty)? I can't install the one I downloaded from cpan. I'm having errors in the compiler 'cl' but it is already installed and PATH is properly defined. Below are the errors from the log during makefile.pl:  

Re: Net::Telnet and Windows Telnet Server --- any alternatives?

2005-03-17 Thread Chris Wagner
The Hummingbird telnet works like a normal terminal but is non free. For scripting a telnet session I would use Expect anyway. For a free telnet server that is terminal like I would(and do) use Cygwin. U can even use bash as the shell. -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911

Net::Telnet and Windows Telnet Server --- any alternatives?

2005-03-17 Thread Jim Guion
Hi Folks, The Net::Telnet doc explains why the Windows Telnet Server will not work with that module (sends ANSI cursor positioning codes, etc. instead of simple ASCII) and mentions that alternative Telnet servers exist, but does not name them. Apparently, many of them do the same thing as the

Re:Re: net::telnet (and perl sockets) question

2005-01-05 Thread assistent
[EMAIL PROTECTED] wrote: > And 2-nd question: > how to start fixed program/without params/ on windows98 box > from linux box (on a local network) ? > You can 'use IO::Socket;' on the Windows box to set up a simple server, and 'use IO::Socket;' on the linux box to send the "start" message to the

Re: net::telnet question

2004-12-30 Thread Sisyphus
[EMAIL PROTECTED] wrote: And 2-nd question: how to start fixed program/without params/ on windows98 box from linux box (on a local network) ? You can 'use IO::Socket;' on the Windows box to set up a simple server, and 'use IO::Socket;' on the linux box to send the "start" message to the server on

Re: net::telnet question

2004-12-30 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > Hi! > Is there telnet server for windows98 > which works with Net::Telnet ? > I downloaded some 6 servers > some of them are not working > at all,some does't work > with Net::Telnet I doubt that - you're doing something wrong in your sc

net::telnet question

2004-12-30 Thread assistent
Hi! Is there telnet server for windows98 which works with Net::Telnet ? I downloaded some 6 servers some of them are not working at all,some does't work with Net::Telnet And 2-nd question: how to start fixed program/without params/ on windows98 box from linux box (on a local ne

IPC::Open2 & Net::Telnet

2004-12-02 Thread vega, james
I've been trying to write a script that controls an interactive command-line program. From the searching I've done, it looks like IPC::Open2/IPC::Open3 paired with Net::Telnet would be the easiest way to do this on Windows. The included script is my attempt, however I get the follo

Re: Net::Telnet::Cisco script not waiting for prompt

2004-02-29 Thread James Brown
ate some router changes using Net::Telnet::Cisco and having problems. The router: IOS (tm) 2500 Software (C2500-J-L), Version 11.2(14) The cisco module methods seem to work well for login, enable, and cmd('show version'). I run into a problem when I issue cmd('wr'). The router r

RE: Net::Telnet and Term Type

2003-07-21 Thread Andrew Timberlake-Newell
ort TERM=vt100’)   -邮件原件-   I need to set the Telnet terminal type option for a telnet connection using Net::Telnet.  Does anyone know how to do that?   My script is connecting to the system and processing most commands just fine.  (So I know it is NOT related to my prompt setting.) 

RE: Help needed -- Net::telnet gives errors

2003-06-14 Thread Scot Robnett
PROTECTED] Behalf Of Carl Jolley Sent: Saturday, June 14, 2003 7:29 PM To: ashish srivastava Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Help needed -- Net::telnet gives errors On Sat, 14 Jun 2003, ashish srivastava wrote: > Hi Ibrahim > Thanks for ur help ! &g

RE: Help needed -- Net::telnet gives errors

2003-06-14 Thread Carl Jolley
Log in Screen > > action="/cgi-bin/telp.pl" method="GET" > > > User id :     > > > Password : > >    Value="Submit" > > > > > > > > And this is the Perl code > > > use CGI; > use CGI::C

RE: Help needed -- Net::telnet gives errors

2003-06-13 Thread ashish srivastava
l code use CGI; use CGI::Carp qw(fatalsToBrowser); use Net::Telnet(); print "Content-type:text/html\n\n"; read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/,$buffer); print " @pairs \n"; $j=0; foreach $pair (@pairs) { ($name, $

RE: Help needed -- Net::telnet gives errors

2003-06-13 Thread ibrahim
after login and this what I could not solve it until now (send enter key or any key to this type of switch after login). Please let me know if I can help. Thank you.   use Net::Telnet; $telnet = new Net::Telnet (Timeout => 20, Prompt => '/[%#>\]\/] *$/'); $out='C:\Result.txt&

Net::Telnet Script Issue

2003-03-06 Thread Lupi, Guy
I was able to resolve my issues with Net::Telnet not working, thank you to everyone who replied to my post. Now I have something different. Below is a script that I wrote, it telnets to a Cisco router, goes into enable mode, and is supposed to print the output of a "show ip route" com

RE: Having problems with Net::Telnet

2003-03-04 Thread John Drabinowicz
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 ->

Re: Having problems with Net::Telnet

2003-03-04 Thread michael higgins
Lupi, Guy wrote: I did that, here is the output that was returned. C:\Perl>ppm 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

Another Net::Telnet question while we are on the subject!

2003-03-04 Thread John Drabinowicz
Title: Another Net::Telnet question while we are on the subject! Hi all, I was just wondering about this: I use Net::Telnet to send a command that takes anywhere from 3 to 10 minutes to complete. Is there some way to create some activity indication while the command is out doing its

RE: Having problems with Net::Telnet

2003-03-04 Thread Lupi, Guy
I did that, here is the output that was returned. C:\Perl>ppm 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 port

RE: Having problems with Net::Telnet

2003-03-04 Thread Lupi, Guy
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('Passwor

RE: Having problems with Net::Telnet

2003-03-03 Thread John Serink
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 > > &

Re: Having problems with Net::Telnet

2003-03-03 Thread michael higgins
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 "n

RE: Having problems with Net::Telnet

2003-03-03 Thread Scot Robnett
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 i

Re: Net::Telnet on Win2K

2002-12-13 Thread Kevin Pendleton
John, The problem is outlined in the Net:Telnet documentation. The "loads of gibberish" is ANSI terminal escape characters. I haven't worked with that exact telnet application, but some allow you to turn ANSI off and on http://search.cpan.org/author/JROGERS/Net-Teln

RE: Net::Telnet on Win2K

2002-11-27 Thread John Serink
Yah, yahread all that. Question is, how do you stop the Win2K telnet server from defaulting to an ANSI terminal? This is particularly worrisome as the option_send method has not yet been written for the Net::Telnet module so it is impossible to ask the Win2K server to change from inside the

RE: Net::Telnet on Win2K

2002-11-27 Thread Allegakoen, Justin Devanandan
play an entire terminal screen. Connecting Net::Telnet to one of these false TELNET servers makes your job of parsing command output very difficult. It's better to replace a false TELNET server with a real TELNET server. The better TELNET servers for MS-Windows allow you to avoid the

Net::Telnet on Win2K

2002-11-27 Thread John Serink
ript, dead simple(line numbers are for explanation purposes): 1 use Net::Telnet; 2 use strict; 3 use warnings; 4 5 my $destination = "srecept"; 6 my $telnet = new Net::Telnet ( Timeout=>10, Prompt=> '/\\>$/i'); 7 my $time = localtime(); 8 $telnet -> dum

RE: NET::Telnet

2002-09-17 Thread John Serink
First, if you are telnetting from a non Windoze PC, you must turn off NTLM authentication on the host. This works on an NT box: use Net::Telnet; use strict; use warnings; my $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die'); my @jim=""; my $frank="&q

FW: NET::Telnet

2002-09-17 Thread Moulder, Glen
ROTECTED]] Sent: Tuesday, September 17, 2002 1:49 PM To: 'Moulder, Glen' Subject: RE: NET::Telnet I'll bet you didn't try setting the term type to 'TTY'. - Mark. > -Original Message- > From: Moulder, Glen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday,

RE: NET::Telnet

2002-09-17 Thread Story, Lenny
Greetings, I too had alot of trouble getting Net::Telnet to work properly, it seemed to continuously stop for no apparent reason, with very poor performance. As well as not being able to make it non-block on win32. I had to eventually write a direct TCP client to get a proper level of

RE: NET::Telnet

2002-09-17 Thread Carter Thompson
Before anyone else mentions it - please add the "use NET::Telnet" in the example. I told you it was untested. ;-) Carter. > -Original Message- > From: Carter Thompson > Sent: Tuesday, September 17, 2002 10:22 AM > To: Jitendra Soam; [EMAIL PROTECTED] >

FW: NET::Telnet

2002-09-17 Thread Moulder, Glen
Carter, what you're saying may work on Unix systems, but after 2 weeks of hair-pulling last year, I gave up trying to use Net::Telnet on legacy Univac and Dec systems. The module just couldn't handle the odd terminal emulation escape sequences that were being fed to it (especia

RE: NET::Telnet

2002-09-17 Thread Carter Thompson
;C:/" I'll need to match that within my code as prompt. If the prompt isn't matched in the time specified in Timeout then the script will either return false or die based on what Errmode is set to, return or die respectively. NET::Telnet Defaults: Timeout = 10 Host = "loc

RE: NET::Telnet

2002-09-17 Thread Thomas R Wyant_III
Jitranda, I gave up trying to figure out what to use as a prompt for Net::Telnet when connecting to Windows' telnet server. Maybe someone out there will enlighten us both. Tom "Jitendra Soam" <[EMAIL PROTECTED]>@listserv.ActiveState.com on 09/17/2002 10:38:52 A

Net::Telnet under windows -> vxworks

2002-08-09 Thread Lawrence Lordanich \(x11486\)
I have installed Net-Telnet on my pc and am trying to telnet to a vxworks platform. Would anybody be able to enlighten me about how to get good stuff back from a $obj->cmd() call? I am trying setting binmode, changing the input separator etc ... but have yet to get good stuff back from a sim

Net::Telnet and wxPerl

2002-07-05 Thread Erich C. Beyrent
Hey everyone, I have a wxPerl app that is using Net::Telnet to connect to a UNIX host to run a script. As you can see from the example, the script is exectuted, and then I want to watch the output log get updated, but I want to pipe that into a Text area on the wxPerl app. I can't se

Printing to browser while waiting for Net Telnet to releasecontr ol

2002-07-04 Thread Sundara Rajan
Hi I have a Perl script that runs as CGI and uses Net::Telnet to connect to a UNIX machine and execute a set of tasks. The system works except that the user has to wait for the some time for the browser to show up something (it waits till the control is returned from the Telnet process) . Part of

Re: Help with Net::Telnet

2002-06-22 Thread Carl Jolley
On Mon, 17 Jun 2002, Erich C. Beyrent wrote: > Hi everyone, > > I need some assistance with a Net::Telnet project. I am trying to telnet from my >Win2k box to a Solaris 2.8 host to run an application. I can telnet as root into the >Solaris box via the command console, but when

Help with Net::Telnet

2002-06-21 Thread Erich Beyrent
Hi everyone,   I need some assistance with a Net::Telnet project.  I am trying to telnet from my Win2k box to a Solaris 2.8 host to run an application.  I can telnet as root into the Solaris box via the command console, but when I try to do it through my Perl code, I get an invalid username

RE: pattern match timeout error using Net::Telnet

2002-04-12 Thread Thomas_M
You don't need to waitfor() the prompt. Just use cmd() and Net::Telnet will automatically stop reading at the prompt. The prompt will not be included in the return value of cmd(). This, of course, assumes you've specified the prompt correctly. If this is your problem, you can us

pattern match timeout error using Net::Telnet

2002-04-12 Thread Allegakoen, Justin Devanandan
Hello all, I'm using the Net::Telnet module on a SunOS based system to run a program that resides on a Windoze 2k server. By use of the log, I have determined that connection, and login are fine. But I keep getting a pattern match timed-out error. According to the Help, it relates th

RE: Help for Net::Telnet

2001-11-29 Thread Brown, Aaron D
formatting. For better or worse, that's how it is. 2) You use WAY too many question marks. The Recommended Sentence Allowance is one. 3) I've never used Net::Telnet before, but I can make some guesses from all this conversation you've been having... You assign a great big value to $len

RE: Help for Net::Telnet

2001-11-29 Thread Chad Tower
his operation.       -Original Message-From: Bryan Bateman [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 29, 2001 2:56 PMTo: Chad TowerCc: [EMAIL PROTECTED]Subject: Re: Help for Net::Telnet Still getting buffer overflow.  What is this newbie doing wrong??    

Re: Help for Net::Telnet

2001-11-29 Thread Bryan Bateman
Still getting buffer overflow.  What is this newbie doing wrong??       my $len = 3001000; . . . . $t = new Net::Telnet (Timeout => 200, Prompt => '/root\@hsvaps1/'); $len = $t->max_buffer_length; $t->open("hsvaps1"); $t->login($u

RE: Help for Net::Telnet

2001-11-29 Thread Chad Tower
Put it right after you open the telnet object...   -Original Message-From: Bryan Bateman [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 29, 2001 1:40 PMTo: Chad TowerCc: [EMAIL PROTECTED]Subject: Re: Help for Net::Telnet When and where do I apply it in the code

Re: Help for Net::Telnet

2001-11-29 Thread Bryan Bateman
When and where do I apply it in the code???  No code example.     - Original Message - From: Chad Tower To: 'Bryan Bateman' Cc: '[EMAIL PROTECTED]' Sent: Thursday, November 29, 2001 1:22 PM Subject: RE: Help for Ne

RE: Help for Net::Telnet

2001-11-29 Thread Chad Tower
an To: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 11:46 AM Subject: Help for Net::Telnet Having some problems specific to Net::Telnet.  Anyone know of a listserv that is appropriate for help???

Re: Help for Net::Telnet

2001-11-29 Thread Bryan Bateman
: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 11:46 AM Subject: Help for Net::Telnet Having some problems specific to Net::Telnet.  Anyone know of a listserv that is appropriate for help???

Re: Help with executing a command on remote machine using Net::Telnet

2001-07-01 Thread Satish Vadlamani
A small correction-> I am able to run it but not desired results. thanks. Satish >From: "Satish Vadlamani" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: Help with executing a command on remote machine using >Net::Telnet >Dat

Re: Help with executing a command on remote machine using Net::Telnet

2001-07-01 Thread Satish Vadlamani
; use Cwd; use File::Copy ; use File::Path ; use strict; use Data::Dumper; use Time::Local; use Win32; use Date::Calc; use Net::Telnet; $\ = "\n"; my $t; #$t = Net::Telnet->new (Timeout => 10,Host => 'MatrixProd',Prompt => '/c:.*>/i'); $t = Net::Te

Re: Help with executing a command on remote machine using Net::Telnet

2001-07-01 Thread Andy Jennings
As specified in the Net::Telnet docs, your prompt should be a match string. Try something like:- prompt =>'/c:.*?>/' #untested on a full session but does not throw an error when called as below Andy - Original Message - From: "Satish Vadlamani" <[EMAIL PROT

Help with executing a command on remote machine using Net::Telnet

2001-06-30 Thread Satish Vadlamani
MATRIX~1\DF\controls\scripts\RUN_PR~3.PL line 17 Here is the relevant part of my program. Thanks a lot if you can be of help. use Cwd; use File::Basename; use Env; use Cwd; use File::Copy ; use File::Path ; use strict; use Data::Dumper; use Time::Local; use Win32; use Date::Calc; use Net

net::telnet, fork, & waitpid

2001-06-09 Thread JOHN PETRI
::telent's getline empties the buffer. If I can't get this to unblock, I wonder how big is the buffer? Will I loose anything?) Signed fork rookie. Signed net:: rookie. Thanks. use Net::Telnet (); use POSIX ":sys_wait_h"; # Here the call in the parent's sub &

net::telnet, alive and well test?

2001-06-05 Thread JOHN PETRI
Is there a simple way to tell if the telnet connection has died? Was hoping for a $tel->isAlive test. Now I loop on getline which returns undef and timeout error info. I can't seem to verify the connection unless I close and reopen. Not allowed to write the port for verification. Th

net::telnet

2001-04-11 Thread John Williams
My mistake...     the line $telnet->cmd("su");should have been$telnet->print("su");   when I changed it, the waitfor command waited for the "Password:" prompt.   works fine now...  I'm just kinda new to this and was following an example..   Thanks!   John

Re: net::telnet

2001-04-11 Thread Ron Grabowski
> $telnet->cmd("su");   su should require a password so normal users cannot arbitrarly become root.  

Re: net::telnet

2001-04-11 Thread Ted W.
I have no familiarity with the Net::Telnet module, but I believe the SU syntax is actually 'SU -' to open a shell that you can log into. TW On Wed, 11 Apr 2001, John Williams wrote: > I've had success with the Net::Telnet module. But I can't get the SU > command to w

net::telnet

2001-04-11 Thread John Williams
I've had success with the Net::Telnet module.  But I can't get the SUcommand to work.  It times out waiting for a password.Any ideas?Thanks!John---CODE#! perl remote loginuse Net::Telnet ();$telnet = new Net::Telnet (Timeout => 5);$telnet->open("192.134.

Net::Telnet .. last plea b4 I give up :-(

2000-10-13 Thread Nick Djurovich
t; use Net::Telnet; my (@data, $line); my $t = new Net::Telnet( Timeout => '5', Prompt => '/C:>/', Dump_log => 'dump.log', Input_log=> 'in

Net::Telnet ... at wits end ...

2000-10-12 Thread Nick Djurovich
Hi, Has anyone had this working, connecting to a Microsoft Telnet server ? I posted earlier and still have the same problem, that the cmd is returning no output, even though the output appears in the dump log. Cheers, Nick Djurovich -