Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 64974 invoked from network); 5 Jul 2006 15:37:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 15:37:13 -0000 Received: (qmail 26288 invoked by uid 500); 5 Jul 2006 15:36:59 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26241 invoked by uid 500); 5 Jul 2006 15:36:59 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 26210 invoked by uid 99); 5 Jul 2006 15:36:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 08:36:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hughw@soco.agilent.com designates 192.25.240.37 as permitted sender) Received: from [192.25.240.37] (HELO msgbas2x.cos.agilent.com) (192.25.240.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 08:36:57 -0700 Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 38F087262 for ; Wed, 5 Jul 2006 09:29:10 -0600 (MDT) Received: from wcosvs03.cos.agilent.com (wcosvs03.cos.agilent.com [130.29.152.233]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 14B1B1C26FB for ; Wed, 5 Jul 2006 09:29:08 -0600 (MDT) Received: from srmail.soco.agilent.com ([141.121.57.140]) by wcosvs03.cos.agilent.com with InterScan Messaging Security Suite; Wed, 05 Jul 2006 09:29:08 -0600 Received: (from hughw@localhost) by srmail.soco.agilent.com (8.9.3 (PHNE_29774)/8.9.3 SMKit7.1.1_Agilent) id IAA29890 for users@httpd.apache.org; Wed, 5 Jul 2006 08:29:07 -0700 (PDT) Message-Id: <200607051529.IAA29890@srmail.soco.agilent.com> In-Reply-To: <8F798BFDA851B943B3A1B2510E928785BE17AC@airmail.wirelessworld.airvananet.com> from Rajat Sharma at "Jul 5, 2006 9:52:25 am" To: users@httpd.apache.org Date: Wed, 5 Jul 2006 08:29:07 -0700 (PDT) From: Hugh Williams X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] CGI help on apache needed X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Is there really a need to use forking? Instead, how about: 1. CGI prints instant reply. 2. CGI execs long job (you *are* using exec and not system, right?), and exits. 3. long job sends mail (exec or system or a subroutine) when it's done. You'd need to pass $loginid to the long job of course. hugh Rajat Sharma wrote: > > Script looks something like below > > 1. print ("Location: http://XYZ:9090/Project/filepath.html\n\n"); > 2. close(STDOUT); > 3. my $pid = fork; > > 4. $pid = 0 unless defined $pid; # be the kid if fork failed > > 5. exit 0 if $pid; > > ## child... > > 6. close(STDOUT); > > ### LONG DIRTY JOB START > 7. exec "la_results.pl $input{'dirPath'} $checkboxString"; > ### LONG DIRTY JOB OVER > > 8. mail.pl $loginId ## MAIL THE NOTIFICATION > > Issue is that the after submit of the page, the IE still keeps loading > the page until the long\dirty job is over. -- Hugh Williams "There are two things to aim for in life; hugh_williams@agilent.com first, to get what you want; and after that, Agilent Technologies to enjoy it. Only the wisest of mankind Santa Rosa 2US-C achieve the second." 707.577.4941 - Logan Pearsall Smith, 1931 --------------------------------------------------------------------- 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