Click here to get back home

Sending "page up" and "page down" character problem.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Sending "page up" and "page down" character problem. Hiren Bhinde 09-07-2004
Posted by Hiren Bhinde on September 7, 2004, 1:59 pm
Please log in for more thread options
Hi,

I am writing a script that,

a. Initiates a telnet connection with a server S with user id UI and
Password P
b. It then sends a couple of commands to go in another directory


Now, I want to do a "page up" or a "page down" through my script. The
terminal that I am talking to is a VT220 type and has different escape
sequences.

The escape sequence for a page down is "e[6~" (without the quotes)

how can I send this through my telnet script.

For e.g. When I want to enter my user id and password i write

$remote = new Net::Telnet (Timeout => 30,Errmode => 'die');
$remote->print("userId");
$remote->waitfor('/password: /i');
$remote-_print("password");


How cann I do the same for sending the escape characters ???

I have tried $remote -> print "e[6~";

but this does not work.

Any sort of help would be truly appreciated,

Thanks,

Hiren


Similar ThreadsPosted
lwp authentication on asp page March 23, 2005, 10:28 pm
web page automatic update August 15, 2004, 2:32 am
Module to get text from a PDF page? January 6, 2005, 8:52 pm
Delayed WEB Page Response February 6, 2008, 7:11 pm
ANNOUCE: Data::Page::Viewport V 1.01 February 14, 2005, 10:43 am
ANNOUCE: Data::Page::Viewport V 1.02 February 21, 2005, 10:04 am
LWP::UserAgent and redirected page responses October 21, 2005, 12:33 pm
Sticky notes page module? July 6, 2006, 1:09 pm
Invalid Page Fault With Win32::GUI Under Win98 July 9, 2004, 5:27 pm
Net::SSH::Perl to connect to a remote server via a web page August 30, 2004, 10:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap