Re: running process in the background

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 &`;
}




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux