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

Re: Empty crontab



On Sat, Mar 10, 2007 at 01:15:18PM +0100, Marko Randjelovic wrote:
> Franck Joncourt wrote:
> >On Sat, Mar 10, 2007 at 12:49:19PM +0100, Marko Randjelovic wrote:
> >  
> >>I see tasks from directories /etc/cron.* are ran regulary, but when I 
> >>run "crontab -e" as root, the file is empty. Where are these tasks 
> >>schedualed? I am asking because I want to know at what time of the day 
> >>are tasks from cron.daily ran  and how to change it.
> >>    
> >
> >If I am not mistaken crontab -e edits root's crontab, however, according
> >to me, you are looking for /etc/crontab, aren't you ?
> >
> >  
> I thaught root's crontab is /etc/crontab. Thanks. Which command then to 
> run to edit this file (sometime ago I read it is not recommended to edit 
> it directly)?
> 

Looking at /etc/crontab you can see when cron.hourly and its friends
start. I think if you want to add some tasks for the root user, you can
add them to /etc/cron.d, /etc/cron.hourly ... according to your needs. I 
would do this way.

-- 
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF  9A3C C490 534E 75C0 89FE

Attachment: signature.asc
Description: Digital signature


Reply to: