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)
  • vb.net program for automatic web file download ?
    ... But perhaps now in vb.net someone has some guidelines! ... textboxes and click on the download button ... radiobuttons, ...
    (microsoft.public.dotnet.languages.vb)