qbxk has asked for the wisdom of the Perl Monks concerning the following question:
What this apparently does, which I want it to do, is print OK and then execute some_cmd, and the browser recieves the string "OK" and a closed HTTP connection BEFORE (or AS) that qx occurs. I want those 2 events to be as close as possible as I can get it, connection closure and qx/ some_cmd / - but why#!/usr/bin/perl use warnings; use strict; $|++; # running in Apache 1.3.34 print "Content-Type: text/html\n\n"; print "OK"; fork(); close STDOUT; qx/ some_cmd /;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: explain my code
by Joost (Canon) on Jun 22, 2006 at 19:10 UTC | |
| |
|
Re: explain my fork
by sgifford (Prior) on Jun 23, 2006 at 01:30 UTC | |
by wirrwarr (Monk) on Jun 23, 2006 at 07:52 UTC |