[Mpls-pm] CGI.pm and forking question
Glenn Bushee
glenn at easy-access.com
Tue May 9 14:46:13 PDT 2006
Josh, thank you for the link. I found a related post that MJD made on the
topic (http://www.plover.com/~mjd/misc/dyana) and eventually got it working
properly using the following line within the double-fork routine:
exec("PATH_TO_ANALYSIS_PROGRAM '0041' >/dev/null &");
While 0041 is a temporary value, for my purposes it will be replaced with a
variable that will go through quite a bit of cleaning since I did NOT get
this to work trying to string it together such as:
exec("PATH_TO_ANALYSIS_PROGRAM", "0041", ">/dev/null &"); # did not work
Thank you again.
- Glenn
On 5/9/06, Joshua ben Jore <twists at gmail.com> wrote:
>
> On 5/8/06, Glenn Bushee <glenn at easy-access.com> wrote:
> > The problem I'm hitting is that the parent process seems to hang around
> and
> > won't invoke the meta redirect until the exec in the child is
> done. This
> > doesn't make sense to me.
>
> See Suffering from Buffering at
> http://perl.plover.com/FAQs/Buffering.html. If that's not it I'd go
> look at what happens when you $SIG{CHLD} to something mentioned in
> perlipc.
>
> Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/mpls-pm/attachments/20060509/e52692d2/attachment.html
More information about the Mpls-pm
mailing list