in reply to Starting another programme from mod_perl

You could just fork it off like this:
unless (fork) { exec("/some/long/running/program"); # exec never returns here }

Replies are listed 'Best First'.
Re: Starting another programme from mod_perl
by suaveant (Parson) on Apr 02, 2004 at 20:31 UTC
    That may cause issues... you may need to close STDOUT as well, and possibly STDERR. I know you need to do this from a CGI, otherwise the child can cause the process to stay open.

    It seems there is also a call to detach a process from a process group, just for an extra measure of independance, but I don't remember what that call is.

                    - Ant
                    - Some of my best work - (1 2 3)