For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > net::telnet problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author net::telnet problem
scuba man

2004-07-23, 3:55 pm

Hi

I have written a script which logs onto the server and issues a command - So
far so good. If the command returns a lot of data and the server response is
to issue a [more] response the module hangs and times out waiting I presume
for the prompt.

What I am trying to do is a basic <STDOUT> to a file which I can get to work
fine with the SSH module but cannot replicate this with the telnet module.

Any clues

Cheers
Nigel


Joe Smith

2004-07-26, 3:56 am

scuba man wrote:

> I have written a script which logs onto the server and issues a command - So
> far so good. If the command returns a lot of data and the server response is
> to issue a [more] response the module hangs and times out waiting I presume
> for the prompt.


You'll need to tell the program to not put out the "[more]" prompt.
Check the docs on the program being run, it may be something like
set terminal pagelength 0
to not pause every 24 lines.
-Joe
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com