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

Re: Howto add a crontab job ?



In linux.debian.user, you wrote:
> 
> I use crontab -e to edit my personal crontab.  The format that you are 
> looking for is:
> 
> 
> * * * * * <command> \n
> 
> The first star is the minutes:  every 5 minutes would be 0-59/5 or 
> 0,5,10,15,20,25,30,35,40,45,50,55
> 
> The second star is the hours:  every hour is *
> 
> The third star is day of the month
> 
> The fourth star is month of the year
> 
> The fifth star is day of the week: Sunday is both 0 and 7.
> 
> The \n means that every line must end with a new line.
> 
> So every five minutes is something like:
> 
> 0-55/5 * * * * <command> \n

I have put this in using crontab -e so that all the info is there when I do
my next edit:

#minute (0-59)
#|	hour (0-23)
#|	|	day of the month (1-31)
#|	|	|	month of the year (1-12)
#|	|	|	|	day of the week (0-6 with 0=Sunday)
#|	|	|	|	|	commands

It is at the top and then my cron jobs are lined up under it.

-- 
Anita
GnuPG key: 1024D/9EDAC910



Reply to: