Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Sending "page up" and "page down" character problem.
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

Report this thread to moderator Post Follow-up to this message
Old Post
Hiren Bhinde
09-13-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Modules archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:05 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.