Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] Shell in background? From: Karl Pielorz (kpielorz <email protected>)
Date: 01/30/99

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
aroun 3 minutes :-( - I've tried 'tricking it with a simple:

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

But that didn't work... Am I going to have to carry the tricks further and
'wrapper' the program somehow (e.g. php calls's a shell script which then
calls the offending program 'in background')?

Regards,

Karl

--
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>