crontab configuration in FreeBSd -6.2
Pieter de Goeje
pieter at degoeje.nl
Wed Jun 27 08:54:38 UTC 2007
On Wednesday 27 June 2007, dhaneshk k wrote:
> Hi all
>
> I need to configure a crontab for a FreeBSD -6.2 box .
>
>
> To test it , as root user I entered a line into the /etc/crontab
> by using easyeditor as follows
> 50 21 * * * root /root/testcron
>
> and I saved this.(cat /root/testcron is touch /root/desktop/Myfile)
>
> and I tried to do as root user this # /etc/rc.d/cron restart
>
> got O/P as
>
> Stopping cron.
> Starting cron.
>
>
> Then I tried to give #crontab -l But Output is as this
>
> don# crontab -l
> crontab: no crontab for root
>
> why this message is it working fine ? ya not how can I list crontab -l
> (the cronjobs for root)
>
> Pls provide your suggestions
>
> any way the Myfile is created by crontab , but why the message no
> cronjob for root ?
Because that's a different crontab. Each user (including root) has their own
crontab. What you have just edited is the system wide crontab.
The message stating "root's crontab for freebsd" in /etc/crontab is kind of
confusing.
HTH,
Pieter de Goeje
More information about the freebsd-questions
mailing list