Hi,

I am logging to a remote session using telnet. I am calling a command to run
an exe. This exe sometimes runs fast and at times take a couple of minutes
depending on the objects.

The problem that I am facing is:
While creating the telnet object, I specify the time out. If the exe that am
running is taking more time than that specified, it is exiting. If I don't
specify the timeout, it exits in 10 sec. Below is my code snippet:
*********************************************************************
 my $telnet = Net::Telnet->new(HOST => "$SERVER",
                                        TIMEOUT => 120) or die $!;
        $telnet->login($USER,$USER);
        $telnet->cmd("cd patches/$PATCHID");
        $telnet->cmd("buildforms >>$FRLLOG");
*********************************************************************

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?

Thanks & Regards,
Lakshmi
952-833-1220


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


Reply via email to