[TYPO3-dev] HowTo: Running a cronscript using TYPO3 with CLI

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Jan 7 11:00:32 CET 2008


Steffen Ritter schrieb:
> 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. 

You can call it via "php <script>" name regardless of the first line. The 
real problem is somewhere below where a resolving of a relative path 
working only on Unix breaks on Windows.

Masi




More information about the TYPO3-dev mailing list