RTFM crontab(1) & crontab(5). You must not put your crontab(5) file into that directory yourself, but either use crontab(1) (I just misread it, I created my file using vi and didn't know where to put it. (forehead slap)
crontab -e
) to edit it: the editor denoted by the EDITOR or VISUAL environment variable is invoked (default: vi(1)), or use crontab filename
to "install" the file where the cron daemon expects it. crontab -e
, then I logged in as root and went to /var/cron and created a file called allow and put Jeff
in it with no trailing space. rm /home/Jeff/Downloads/Firefox/*
and it works from the CL.#Jeff's Crontab
#
#$FreeBSD$
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
#
#minute hour mday month wday who command
#
*/5 * * * * * rm /home/Jeff/Downloads/Firefox/*
1. user crontabs are saved by the crontab(1) command under /var/cron/tabs/<user>, including root's. Note: batch(1) & at(1) jobs are saved under /var/at/jobs. |
2. the system crontab is /etc/crontab; this one has one additional field: the who ([FONT=courier new]user[:group][/FONT]) field. Note: the periodic(8) framework is invoked via this system crontab. |