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

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Jan 10 23:06:50 CET 2011


Christian Kuhn schrieb am 10.01.2011 22:25:
> 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.


The above mentioned trouble is "documented" even on Wikipedia [1] under
"Portability".

I think we don't need the "-q" parameter. What does it do? It is not
even documented in PHP 5.2.x? Without it, it should be the most portable
solution.

Cheers,
Ernesto

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


More information about the TYPO3-team-core mailing list