Solved

How to ensure a CGI process completes?

Posted on 1997-04-20
1
190 Views
Last Modified: 2013-12-25
Hi,

I'm using a Perl program to interface with a flat text database.  All works great 99.9% of the time.

The problem is that if a user loses their connection to our server during the "writing back to disk" phase of the software the CGI task is terminated.  This causes the data on disk to be chopped off.

We are running under Apache 1.2b7...Is there any way to ensure that a CGI task will finish once it is started, or perhaps a modified CGI handler for Apache that won't stop a task when a connection is lost?
0
Comment
Question by:jrusnak
1 Comment
 
LVL 1

Accepted Solution

by:
OM earned 100 total points
ID: 1827929
This depends on the way you are using your perl program
(input, output, etc.)
Nervertheless, you could use the following tricks,
or a similar one.
Use the following CGI instead of yours:
#!/bin/sh
/you/cgi/here &
wait

Hope this helps
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question