in reply to Re: Fork child
in thread Fork child

The child I create does not write to the error log for some reason. Putting an eval around the code helps a great deal if you catch the error and immediately email the person who made the request. But I am going to redirect stderr to another log file and I think that will work. Thanks a lot.

Replies are listed 'Best First'.
Re^3: Fork child
by ig (Vicar) on Dec 03, 2008 at 21:09 UTC

    We would need more information about your server configuration and CGI script to determine why output to STDERR doesn't end up in the server's error log. If you want to pursue this, you should let us know your operating system, whether you are using mod_perl, fastCGI, etc. and versions of all the major components. And posting a small test script that exhibits the behaviour in your enviornment would be very helpful. You might also run the script I provided on your server and let us know what happens.

    On the other hand, if writing to another log file meets your needs, that's fine too.

      I was able to redirect STDERR and STDOUT to a log file. Great!! Thanks for all your help!