Cron question

Matt datahead4 at
Thu Apr 24 22:08:18 UTC 2008

On Thu, Apr 24, 2008 at 3:26 PM, John Almberg <jalmberg at> wrote:
>  SHELL=/usr/local/bin/bash

Did you install bash from ports and does it run OK from outside of cron?

> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/gs/bin
>  HOME=/home/gs
>  0 15 * * * /home/gs/bin/script.php >>/home/gs/log/script.log
>  I can see from the cron log that cron runs script.php at the appointed
> hour:
>         Apr 24 15:00:03 on /usr/sbin/cron[72414]: (gs) CMD
> (/home/gs/bin/script.php >>/home/gs/log/script.log)

This entry in the cron log will still show up if the shell listed in
the crontab is not available.  However, as someone else already
mentioned, cron sends a mail when it goes to run and can't execute the

More information about the freebsd-questions mailing list