[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crontab doesn't run



On 11/26/07, Jan <jan@tofuwurst.org> wrote:
> Hi!
>
> I've just installed a system with Debian Etch 4.0 and the crontabs which are edited by users will not be executed.
>
> The cronjobs added by the root user, "crontab -e" will are executed as expected. Jobs added by a regular user, also using "crontab -e" are not executed. For testing puposes I just added a simple:
>
> 0-59 * * * * /bin/date >> /home/jan/date.txt
>
> And for some reason it doesn't run. When I save the crontab I get the message "crontab: installing new crontab".
>

Make sure that the last line of the crontab ends in a newline. Cron
will silently ignore lines without one. I keep a comment as the last
line to avoid this problem.



Reply to: