Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 10:54:31 +0200
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-questions@freebsd.org
Cc:        dhaneshk k <dhaneshkk@hotmail.com>
Subject:   Re: crontab configuration in FreeBSd -6.2
Message-ID:  <200706271054.32569.pieter@degoeje.nl>
In-Reply-To: <BAY127-F21487EC0AA1165B09C958DB20A0@phx.gbl>
References:  <BAY127-F21487EC0AA1165B09C958DB20A0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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