Re: doubts in using net::telnet in perl

2010-07-22 Thread Chas. Owens
On Thu, Jul 22, 2010 at 03:38, Sooraj S wrote: > Thanks for your help...It worked...My shell script prints properly... > > At one stage it will prompt for user input > -- > Mountpoint : Xpr23filesystem > Kernel : verified > P2P : katren" > OK to go : [y/n] ?

Re: doubts in using net::telnet in perl

2010-07-22 Thread Sooraj S
Thanks for your help...It worked...My shell script prints properly... At one stage it will prompt for user input -- Mountpoint : Xpr23filesystem Kernel : verified P2P : katren" OK to go : [y/n] ? -- How to get the user in

Re: doubts in using net::telnet in perl

2010-07-21 Thread Chas. Owens
On Wed, Jul 21, 2010 at 10:41, Sooraj S wrote: > Hi Chas Owens, > > Thanks for your reply. I tried as you suggested. It prints the output > in the run time but the output is unformatted. snip > > Is there any way to avoid the address values that gets attached to the > actual output.. snip Hmm, it

Re: doubts in using net::telnet in perl

2010-07-21 Thread Sooraj S
Hi Chas Owens, Thanks for your reply. I tried as you suggested. It prints the output in the run time but the output is unformatted. < 0x0: 77 6f 72 6b 2f 61 74 6c 61 6e 74 69 63 5f 6e 6f home/ shell_script < 0x00010: 72 5f 72 65 6c 65 61 73 65 2e 63 73 68 5f 74 65 _newlone.csh_te < 0x0

Re: doubts in using net::telnet in perl

2010-07-21 Thread Chas. Owens
On Tue, Jul 20, 2010 at 10:57, Sooraj S wrote: > Hi, > > I am using Net::Telnet module to login to a remote machine and to > perform a series of steps. In my script i am calling a shell script > which does some operations and takes almost 3 min to complete. I want > to redirect

doubts in using net::telnet in perl

2010-07-21 Thread Sooraj S
Hi, I am using Net::Telnet module to login to a remote machine and to perform a series of steps. In my script i am calling a shell script which does some operations and takes almost 3 min to complete. I want to redirect the output of that script to the console in run time, when it is running. Is

Re: Problem with retrieving output from commands using net::telnet

2005-12-21 Thread Stephen Kratzer
Your regexes are probably not doing what you expect them to. You're using character classes, so it's waiting for the device to return a one character prompt that matches any one of the characters from the class. Try something like /password[: ]*$/i and something similar for other prompts. > All

Problem with retrieving output from commands using net::telnet

2005-12-20 Thread Tim Huffman
All, I'm trying to write a perl script that will telnet a device and run one of two commands based on the output from a beginning command. I'm still in the beginning stages of this, and right now I'm simply trying to print the output from the device to standard out. Reading the documentation on Ne

Re: is this an array context or scalar context?, while using Net::Telnet

2005-06-27 Thread MEENA SELVAM
hi, i am not getting the output of the remote command execution, in the $output, though the dump_log shows that cmd is executed successfully, the following code involves scalar context or array context? my output ie temp array is printed as three blanklines followed by [] i want to kno

Re: using Net::Telnet to test a http server

2002-11-25 Thread david
Admin-Stress wrote: > Hi David, > > Thanks, I followed your suggestion, and it's working fine now. > > About this test, what I need is to test the http server it self, not a > website. > > I meant, in one http server, can host more than one website (name based > virtual hosting?). So, if www.go

Re: using Net::Telnet to test a http server

2002-11-25 Thread Admin-Stress
Hi David, Thanks, I followed your suggestion, and it's working fine now. About this test, what I need is to test the http server it self, not a website. I meant, in one http server, can host more than one website (name based virtual hosting?). So, if www.google.com and www.google.net in one htt

Re: using Net::Telnet to test a http server

2002-11-25 Thread david
Admin-Stress wrote: > Hi, I wrote a script to test if a http server is OK. > My method is : > - telnet to por 80 > - send any text > > If the http server is OK, it will return "some" text, and should contain > string > > So, I assume, if I can catch , then my http server is OK. > > Here is my

using Net::Telnet to test a http server

2002-11-25 Thread Admin-Stress
Hi, I wrote a script to test if a http server is OK. My method is : - telnet to por 80 - send any text If the http server is OK, it will return "some" text, and should contain string So, I assume, if I can catch , then my http server is OK. Here is my perl script: use Net::Telnet; sub e

Using Net::Telnet

2002-11-21 Thread Murali S
Hi, I'm facing the same problem mentioned below "Pattern match read eof". Any ideas what could be the reason? Thanks -- I'm trying to use the Net::Telnet module to talk to a port a remote machine. There is an application on the remote

Using Net::Telnet

2002-06-11 Thread Ken Hammer
Hi, I'm trying to use the Net::Telnet module to talk to a port a remote machine. There is an application on the remote machine (on a specific port) that takes a username/group as input and returns whether the user is a member of said group. No logging in is done at all. An example (done from the