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
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|