Re: run a process in background on Windows

From: Date: Wed, 08 Oct 2014 17:49:13 +0000
Subject: Re: run a process in background on Windows
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-323954@lists.php.net to get a copy of this message
8 okt 2014 kl. 18:08 skrev TR Shaw <tshaw@oitc.com>: > > On Oct 8, 2014, at 11:50 AM, Christoph Becker wrote: > >> Jim Lucas wrote: >> >>> On 10/08/2014 05:54 AM, Jan Vávra wrote: >> >>>> I think It would be nice to have a function exec_in_background(.) that does it >>>> directly in the php core. >>> >>> PCNTL [1] will allow you to fork a process. It isn't usually included in the >>> standard build of PHP. >>> >>> 1) http://php.net/manual/en/book.pcntl.php >> >> However, PCNTL is not available on Windows at all. >> > > If you can run that unix env on windows (used to remember the name but I havent run windows in > years) you could use exec in php and invoke a fork using the "&" shell command so you > would do a "& php phpapp.php” > Cygwin https://www.cygwin.com /frank > > Tom > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#323954) next »