Why not use RSH and remotely execurte you software? You get the output / error codes returned directly, without all the nasty mucking arround in Telnet.
 
Perl isn't great if you need to use Telnet. Try something like expect?
 

--
Iain Whyte, infrastructure and systems manager
Fortis Clearing Sydney Pty Ltd
Ph: +61 2 82213022    Fx: +61 2 92164110
Mb: +61 (0)419793593  Em: [EMAIL PROTECTED]
 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mittal, Manish
Sent: Friday, 30 December 2005 9:25 AM
To: [email protected]
Subject: telnet and other win32 sys utilities

Hi Perl gurus,

             I am trying to write a Perl utility that is expected to do the following

1-       Call windows telnet client utility (or any other external telnet client), and login into a remote telnet server

2-       After the login into the remote server pass a set of commands to execute locally on the remote server

a.        Start a loop after step 2

b.       In this loop call another remote utility using telnet to a second remote machine (telnet <Remote machine 2> and run another EXE files locally on machine 2)

c.       After the last exe file runs completely rerun the loop with different options passed to remote machine 1 using telnet.

 

 

Has any one done such a thing in Perl before? What’s best way if Perl is not the right medium?

 

By the way, Can I make an exe file of the above function, once (if) written in Perl?

 

Thanks

Manish



=========================================================================
This e-mail is sent for the sole attention of the identified addressee
and its contents are provided for information purposes only. Fortis
Clearing Sydney Pty Ltd makes no warranty or representation as to the
accuracy and completeness of any information and does not assume whatever
commitment hereby. Legally binding obligations can only arise for, or be
entered into on behalf of, Fortis Clearing Sydney Pty Ltd by means of
a written instrument, signed by two duly authorised representatives of
Fortis Clearing Sydney Pty Ltd. Fortis Clearing Sydney Pty Ltd excludes
any liability whatsoever for any direct or consequential loss arising
from the use of, or reliance on, this e-mail or its contents.
=========================================================================
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to