Re: Redirecting STDERR to a file?

From: Date: Sat, 02 Feb 2008 12:06:36 +0000
Subject: Re: Redirecting STDERR to a file?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-268562@lists.php.net to get a copy of this message
Hi Per, > > nohup would work in some ways, but that's not a real daemon > > because the process will have tty, in a session and has a process > > group. I like to have a real daemon. > > Well, it depends on what you're after. Are you solving a problem or are > you doing an exercise because you can? Not an exercise. This is for my day job... > If you're solving a problem, and my nohup suggestion isn't sufficient, > just write your daemon in C. If it's an exercise, take a look at > proc_open(). C would be the last resort. I suppose it would be easily done in Perl, but most of my colleagues prefer PHP. I love to make taking over the code easy, so PHP is more preferable to me. I took your advice and tried proc_open, but it seems blocking the parent process. (BTW, I didn't know this function, thanks!) I've already spent a lot of time solving this, os might beter to give up this problem and go for the other solution... Anyway, thanks for you help. I do appreciate it very much.

« previous php.general (#268562) next »