in reply to Stumped on IPC...

when you fork && exit, did you close STDERR STDOUT and STDIN? You must close STDOUT... simply not writing to it is not enough

                - Ant
                - Some of my best work - Fish Dinner

Replies are listed 'Best First'.
Re: Re: Stumped on IPC...
by ismail (Acolyte) on Sep 25, 2001 at 22:32 UTC
    That was it... thanks. Magic code is as follows:
    ... fork && exit; close STDOUT; system ("./someprog.cgi") || warn "funniness $!"; ...
    thanks s.a.
    f.
      Watch out for how you check the return from system. It returns 0 on success, not failure, in a typical environment.
      my $result = system("./someprog.cgi"); warn "funniness: error code $?" if $result;

      buckaduck