Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] Shell in background? From: Jeremiah Bellomy (jeremiah <email protected>)
Date: 01/31/99

On 1999-01-30 Karl Pielorz wrote:
> Is there any way of pursuading the 'exec' / 'system' functions to shell off
> a command and run it in background?

>At the moment if I do:

>exec( "/usr/local/bin/reconf system.dat" );

>The calling script sits there and waits for 'reconf' to finish (which take
>around 3 minutes :-(

I've found that something like the following usually works great:

exec( "/usr/local/bin/reconf system.dat > /dev/null &" );

-Jeremiah Bellomy

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>