Suggestion for cron command if running FreeBSD

If you are running FreeBSD the code that Suite gives you on the Admin, Schedulers:

cd /xxxxx/suite-directory; php -f cron.php > /dev/null 2>&1 

may throw an “Ambiguous Redirect” error in crontab and I’m not sure if it even runs.

It is based on the bash shell but FreeBSD often uses the C shell.

What I did was create a one-line bash shell script called adocron.sh:

#!/bin/sh
cd /xxxx/suite0dir; /usr/local/bin/php -f cron.php > /dev/null 2>&1 

and put the script name in the crontab with a path to it.

/bin/sh /usr/home/xxxx/adocron.sh

This may help someone out there… maybe not.

Thanks for this, I’m sure it will aid others!