Re: CLI in background on windows
| From: | Fanda | Date: | Fri, 19 Dec 2008 09:03:02 +0000 |
| Subject: | Re: CLI in background on windows | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284819@lists.php.net to get a copy of this message | ||
"Jason" <networkadmin@emarket2.com> píse v diskusním príspevku news:70.F5.09584.8465B494@pb1.pair.com...
> At 16:49 18/12/2008, you wrote:
>>Hi,
>>I am looking for some method, how to run php cli script on background in
>>windows. It should be started by windows task manager.
>
> Run php-win.exe rather than php.exe, this will prevent the console
> window from opening whilst the task is running.
>
> Schedule as normal using the Task Scheduler. We have several such
> tasks on our 2K3 SP2 server running this way. Should you need to
> debug, change the php-win.exe back to php.exe to see the console output.
>
>
> Example commandlines:
>
> d:\php\php-win.exe d:\phpcli\phpinfo.php
>
> This will result in no output.
>
> d:\php\php.exe d:\phpcli\phpinfo.php
>
> Will result in a console window appearing and the phpinfo(); output
> printed, then the window will close.
>
> HTH
> J
>
This looks it works. Great! That is what I was looking for. Thank you very much.