Thanks for the input. Will try it out and see!!

Thanks & Regards,
Lakshmi
952-833-1220

-----Original Message-----
From: Chas Owens [mailto:[EMAIL PROTECTED]
Sent: Friday, July 27, 2007 12:47 PM
To: [EMAIL PROTECTED]
Cc: beginners@perl.org
Subject: Re: Telnet exits after time out


On 7/27/07, Lakshmi Sailaja <[EMAIL PROTECTED]> wrote:
snip
> What is the solution? Is there a way that I don't specify the time out
value
> and let it run until the exe completes its execution?
snip

You should never disable the timeout.  If you do then there is a
chance your program will hang forever.  The correct solution is change
the architecture.  Instead of running the program directly and waiting
for it to finish you should run the program in the background on the
remote machine.  Then the program on the local machine should sleep
for a few seconds, check to see if the remote program is finished*,
then sleep again, etc until the remote program is done.

* how you go about doing this is system and program dependent.  The
easiest way is to have the program create a file when it is done.  If
you can't modify the remote program then wrap it with either shell or
batch code as necessary.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to