httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <br...@dessent.net>
Subject Re: [users@httpd] Help running perl cgi over apache
Date Tue, 17 Feb 2004 17:20:09 GMT
"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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message