Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 16:41:07 -0500
From:      Matt <datahead4@gmail.com>
To:        "John Almberg" <jalmberg@identry.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cron question
Message-ID:  <cd6b4a5b0804241441n6fb0533bp290cffeb1cfcca23@mail.gmail.com>
In-Reply-To: <C615711F-BD11-4AAE-8321-5A93A64863E6@identry.com>
References:  <C615711F-BD11-4AAE-8321-5A93A64863E6@identry.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 24, 2008 at 3:26 PM, John Almberg <jalmberg@identry.com> 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
shell.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cd6b4a5b0804241441n6fb0533bp290cffeb1cfcca23>