Using Perl Expect.pm
From: Tapasranjanmohapatra (TapasranjanMohapatra_at_infosys.com)
Date: 03/26/04
- Next message: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Previous message: Alex A.: "Show/download file from a non public folder"
- Next in thread: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Reply: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Maybe reply: Bob Showalter: "RE: Using Perl Expect.pm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 10:38:45 +0530 To: <beginners@perl.org>, "TapasranjanMohapatra" <TapasranjanMohapatra@infosys.com>
Hi,
Can someone tell me how to handle the vt100 sequences using expect module of perl.
I have used the same sequences while using TCL Expect. It works fine. But I don't understand what is the problem while I try doing the same thing using Perl Expect.
If my TCL Expect Code goes like:-
send "\x09" # hexadecimal equivalent of a tab
expect "\x1b?2;2H"
What should be the equivalent Perl code?
I am able to send "\x09" in perl but I think it doesn't expect the correct thing. Perhaps the semicolon has to be escaped but even after escaping the semicolon didn't solve the problem.
Can someone give some help or reference link where I can learn what these values
like "\x1b?2;2H" mean.
Thanks
- Next message: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Previous message: Alex A.: "Show/download file from a non public folder"
- Next in thread: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Reply: Andrew Gaffney: "Re: Using Perl Expect.pm"
- Maybe reply: Bob Showalter: "RE: Using Perl Expect.pm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|