Re: running process in the background

From: Date: Wed, 31 Aug 2005 16:57:36 +0000
Subject: Re: running process in the background
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221659@lists.php.net to get a copy of this message
Oh wait... you are not specifying your $_POST variable. you need to use the key for $_POST. just do a print_r($_POST) to find the key from the $_POST array that you are looking for. also, i would not pass a $_POST variable directly to your shell without escaping it somehow, first... foreach ($_POST[$key] ... Jordan
Did you try also sending stderr to /dev/null rather than stdout only? I think the syntax is to add a "2>&1": foreach ($_POST as $kid){
    php run.php param1 param2 > /dev/null 2>&1 &;
} This should put each process in the background and suppress all errors and output. Does that work? Jordan On Aug 31, 2005, at 11:44 AM, Georgi Ivanov wrote:
foreach ($_POST as $kid){
    php run.php param1 param2 > /dev/null &;
}


« previous php.general (#221659) next »