[TYPO3-english] cronjob for crawler

Jigal van Hemert jigal at xs4all.nl
Tue May 25 14:33:36 CEST 2010


Rens Admiraal wrote:
> Did you set the cronjob using a relative path? If so, set it to an 
> absolute path, like:
> 
> * * * * * /usr/bin/php /var/www/site/typo3/cli_dispatch.phpsh scheduler

Sorry, but this is wrong!

cli_dispatch.phpsh is a shell script and must be called without a call 
to the php executable in front of it.

1. check if cli_dispatch.phpsh is an executable file
2. check inside cli_dispatch.phpsh if the right path to the php 
executable is defined in the first few lines
3. call it in the cron with the absolute path and do not resolve the 
symlink 'typo3' in the path (in most installations typo3 is a symlink to 
the typo3_src-version/typo3/ directory; keep typo3 in the path!)

The entry in cron should look something like:

* * * * * /var/www/site/typo3/cli_dispatch.phpsh scheduler

-- 
Jigal van Hemert.


More information about the TYPO3-english mailing list