[TYPO3-dev] HowTo: Running a cronscript using TYPO3 with CLI
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Jan 7 11:11:15 CET 2008
Steffen Ritter wrote: on 06.01.2008 13:51:
> Martin Kutschker schrieb:
>> Osipov Dan schrieb:
>>> Right, I have no problems scheduling script execution, but I am
>>> having problems executing cli_dispatch.phpsh. It doesn't seem to work...
>>>
>>> That's why it would be helpful if a how to guide for a cron setup
>>> also included a section for Windows users.
>>
>> Wait, on Windows you have at least to use a full path to your script
>> like "php C:\www\typo3\cli_dispacth.php". But I think it's broken
>> completely. Have a look at the Core list archive for suggestions how
>> to fix this.
>>
>> Masi
> I think you can't call the script directly without changing it on
> windows. Because of the first line which is unix style interpreter name.
> Remove this line, so that the dispatcher.phpsh is only php code, and it
> should work(if you call with the full path as said before).
AFAIK the first line won't matter to Windows, as it will always call it
through the php.exe interpreter. And my guess is that php.exe will skip
that commented line.
The suggestion to fix this is the "pending patch" in the core list:
Thread "RFC: Bug #5838: cli_dispatch.phpsh not working with windows"
from 16.7.2007 and http://bugs.typo3.org/view.php?id=5838. See if the
attached patch on that thread solves the issue on Windows (calling the
script in Windows with a full path. If it does, please comment on that
in the core list, so we might integrate at least that fix into core for 4.2.
Cheers,
Ernesto
More information about the TYPO3-dev
mailing list