Jim Yu wrote:
> Hi,
> 
> I am try to automate a analysis process, In which I used a
> windows box to telnet a UNIX box and do the job on the telnet
> consol. I need to use move the cursor down or up and also
> need to use Control key plus a certain cahracter key to do
> the operation. Ideally I sould type a few characters after
> move the cursor to a centain position.
> 
> My question is how to write a Perl script to do it? I do not
> want to sit here do it over and over for weeks!

The keys you press may be either:

1. Interpreted by your Windows terminal emulation software and handled by it
in some fashion, or

2. Passed over to the UNIX side and handled by the device driver and/or
application program running there.

For (1) (and possibly (2)), you would need to look at scripting capabilities
built into your terminal emulation software.

For (2), you can use Perl's Net::Telnet (from the client) or Expect (from
the server) modules to write a script to manipulate the application. This
script would stand in the place of your terminal emulator.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to