Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 66153 invoked from network); 17 Feb 2004 17:20:29 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Feb 2004 17:20:29 -0000 Received: (qmail 74761 invoked by uid 500); 17 Feb 2004 17:20:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74748 invoked by uid 500); 17 Feb 2004 17:20:08 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74734 invoked from network); 17 Feb 2004 17:20:08 -0000 Received: from unknown (HELO dessent.net) (66.227.14.169) by daedalus.apache.org with SMTP; 17 Feb 2004 17:20:08 -0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.30) id 1At8wg-0005nP-4x for users@httpd.apache.org; Tue, 17 Feb 2004 17:23:42 +0000 Message-ID: <40324D49.925627A2@dessent.net> Date: Tue, 17 Feb 2004 09:20:09 -0800 From: Brian Dessent Organization: My own little world... X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,en-US MIME-Version: 1.0 To: users@httpd.apache.org References: <20B7EB075F2D4542AFFAF813E98ACD93028226A7@cl-exsrv1.irad.bbsrc.ac.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Help running perl cgi over apache X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N "michael watson (IAH-C)" wrote: > I am running Suse linux 8.2, Perl 1.5.8, Apache 1.3.28. I think you mean Perl 5.8.1. > I have a perl script which fires off a shell script and then exits. It does this as the shell script takes about 30 minutes to run, so perl doesn't want to wait around. In it's most basic form the script looks like this: > > #!/usr/bin/perl > print "Content-type: text/plain\n\n"; > system("/bin/sh /path/to/command &"); > print "Finished\n"; If you want to run a program and have it continue running after the parent exits, you need to detach (daemonize) it, not just run it in the background. Brian --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org