[TYPO3-english] cli_dispatch.phpsh runs on command line but not cron?

Xavier Perseguers xavier at typo3.org
Fri Jul 1 07:53:43 CEST 2011


Hi,

Just one addition for you:

> - My crontab looks like this (note: it does run because if I do something dumb
> like change a value, it will email me):
> * * * * * /usr/local/bin/php /public_html/typo/typo3/cli_dispatch.phpsh
> scheduler
> - cli_dispatch.phpsh is executable

You don't have to make cli_dispatch.phpsh executable if you run it using 
/usr/local/bin/php (which I do too). Having it executable is needed in 
order to be able to run it directly:

$ ./cli_dispatch.phpsh

and it will know how to "interpret" the content thanks to the 
shebang/hashbang [1] at the beginining:

#!/bin/php

or something like that, which in your case should have been changed to

#!/usr/local/bin/php

Cheers

Xavier

[1] http://en.wikipedia.org/wiki/Shebang_%28Unix%29

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-english mailing list