Solved

How to ensure a CGI process completes?

Posted on 1997-04-20
1
176 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
The viewer will learn how to dynamically set the form action using jQuery.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now