Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] Shell in background? From: Mark Jeftovic (markjr <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:
>

How about

        exec("perl -e 'exec /usr/local/bin/reconf system.dat'");

That will cause the perl process to launch reconf and perl should exit. No
idea if it would work and if it did I would call it a kludge, but wtf.

-mark

-- 
|||| mark jeftovic    (MJ177)   ====  http://www.shmooze.net/~markjr     ||||
|||| easyDNS Technologies Inc.  ====  http://www.easyDNS.com		 ||||
------------------------------------------------------------------------------
 dns hosting / domain registrations / web forwarding / mail forwarding / etc
------------------------------------------------------------------------------

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