[TYPO3-core] RFC #16957: Bug: cli_dispatch.phpsh ignores PATH to php and assumes it's in /usr/bin/

Christian Kuhn lolli at schwarzbu.ch
Mon Jan 10 22:25:04 CET 2011


On 01/10/2011 12:32 PM, Andreas Lappe wrote:
> -#! /usr/bin/php -q
> +#! /usr/bin/env php -q

Doesn't work for me:
user at system:~# /path/to/typo3/cli_dispatch scheduler
/usr/bin/env: php -q: No such file or directory

BTW: I usually add a a cron with this command part:
php /path/to/cli_dispatch.phpsh scheduler

This makes php ignore the shebang line and php executable is considered 
by cron's $PATH environment variable.

Regards
Christian




More information about the TYPO3-team-core mailing list