I generally think that in this case you should consider going asynchronous,
by using something like message queuing - the basic structure as follows :

- User hits page with web browser, identifies self
- Simple little script adds job to queue, returns thank you message to user
- Background process (windows service or scheduled task) checks queue,
initiates processes as required
- Script can run as long as necessary without being subject to the HTTP or
CGI timeouts. Good for big ol' processing jobs
- Script emails the initiating user on completion or on error.

Of course whether all this effort is worthwhile depends on what you're doing
with this script and how long it needs to run for.

Also, on a win32 platform you can use MSMQ, which streamlines some of the
process for you.




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff
Zanzinger
Sent: Monday, 21 June 2004 2:44 AM
To: [EMAIL PROTECTED]
Subject: Browser times out prior to perl program completing

I maintain an administration site that allows users to execute perl
programs using their web browser. I've run into a couple programs that
do not complete execution prior to the browser timing out.  When the
browser quits, the perl program quits before it's done.  I end up with a
mess because these perl programs are manipulating our database.  

Question?  How can I force the browser connection to stay active until
after a perl program finishes execution?    

The only work around I've found is to run from the command line.  This
connection never quits before it's time.

I appreciate any advice on this.


Jeff Zanzinger
groupsponsor.com
[EMAIL PROTECTED]

 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 6/15/2004
 


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18/06/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18/06/2004
 

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to