
21 Oct
2013
21 Oct
'13
5:15 p.m.
On 10/21/2013 03:41 PM, Borja Marcos wrote:
On Oct 21, 2013, at 2:08 PM, Tom Laermans wrote:
On 21/10/2013 14:02, Borja Marcos wrote:
./discovery.php:#!/usr/bin/env /usr/local/bin/php ./poll-billing.php:#!/usr/bin/env /usr/local/bin/php ./poller.php:#!/usr/bin/env /usr/local/bin/php
This makes 0 sense.
If you add the PATH to the crontab, yes, it doesn't make sense. If you don't, FreeBSD has a minimal default PATH offered to the crontab commands, which doesn't include /usr/local/bin.
I'd opt for adding the PATH indeed, makes your life a lot simpler. But if you don't, why not remove "env", it serves no purpose if you pass it a full path - that's what I meant :-)
Tom