Re: CGI: Running a forked background process



Hal Vaughan <hal@xxxxxxxxxxxxxxxxxxxx> wrote in
news:BLGdndCez5kUuibZnZ2dnUVZ_vadnZ2d@xxxxxxxxxxx:

I have a web page (served up by Apache 2) where a user click a link to
download a file. The link calls my Perl CGI script which takes the
parameters and generates a file to download. It takes time to
generate the file, so my idea was to fork like this:

if (!fork()) {
system("$ifile person=$id location=$loc");
exit();
}

http://www.stonehenge.com/merlyn/LinuxMag/col39.html

Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html

.



Relevant Pages

  • Re: CGI: Running a forked background process
    ... The link calls my Perl CGI script which takes the ... parameters and generates a file to download. ... The child program is holding onto the STDOUT and STDERR that it inherited ... STDOUT/STDERR in order to cut the web browser free. ...
    (comp.lang.perl.misc)
  • Re: CGI: Running a forked background process
    ... The link calls my Perl CGI script which takes the ... parameters and generates a file to download. ... The child program is holding onto the STDOUT and STDERR that it inherited ... STDOUT/STDERR in order to cut the web browser free. ...
    (comp.lang.perl.misc)
  • Re: How to run a php script which contains a pdf
    ... to download. ... The properties shows that it contains a pdf document, ... safe to rename it. ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)
  • Re: mailing list pgp signatures...
    ... /\ Download the free operating system here: ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)
  • bsnes
    ... /\ Download the free operating system: ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)