in reply to Re: Re: Re: forking, no child waiting.
in thread forking, no child waiting.

Oh man,,,,

I was all happy, and then I tried it, it worked great when running it from the prompt, but still just kind-of dies when done from the php app. I am hating this part! Here is where I am calling my perl script:
$run="snmp-wdr -c mrtgtest $request &";<BR> echo "<BR>COMMAND SENT: $run<BR>";<BR> $setsys=system($run);<BR>
DANG!

Replies are listed 'Best First'.
(tye)Re: forking, no child waiting.
by tye (Sage) on Sep 21, 2001 at 19:00 UTC

    In addition to the above, you may need to call setpgrp(). See "perldoc -q daemon" for a bit more information.

            - tye (but my friends call me "Tye")
Re: Re: Re: Re: Re: forking, no child waiting.
by suaveant (Parson) on Sep 20, 2001 at 22:21 UTC
    Well... you've got me...

                    - Ant
                    - Some of my best work - Fish Dinner