Hi,
I run a PERL script from Browser (internet Explorer) but the execution
is very slow so the IIS stop my perl.exe
I thinks the my problem is the "timout".
I need to insert in my script the string of the command like ASP:
Server.ScriptTimeOut = 7200
There are two things that might time out -- one is the server, the other
is the client.
The ASP command that you noted is only valid in an ASP environment --
are you using PerlScript to create an ASP in Perl? If not, you are
probably running a CGI. To change the server timeout for CGIs, you will
change it for all of them. This can be changed somewhere in the server
configuration, although you will probably need to restart IIS completely.
If the browser is what is timing out, then you will need to convince the
browser to wait. This can (for MSIE) be done by sending at least 1K of
data back to the browser. I have one case where I needed to do this
(converting a large excel spreadsheet into plain text, filtering the
answers, and sending back error data). To solve the problem of the
browser timing out, I did the following:
# near the start of the program:
$| = 1; # turn off output buffering
my $q = new CGI;
# later on
# send some data back to keep MSIE happy
print $q->header();
print $q->start_html();
print "<!--", 'x' x 2000, '-->\n";
# continue processing
HTH,
Ricky