Re: CLI in background on windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux