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

Re: [cobalt-users] Cron Jobs



On Sun, Mar 05, 2000 at 07:15:27PM +0530, S.K.Sirajuddin wrote:
: How to setup cron job timings , I know how to setup cron jobs daily or
: weekly or so,

[shagster@dev shagster]$ man cron 

[ snip ]

SEE ALSO
       crontab(1), crontab(5)

[shagster@dev shagster]$ man crontab

CRONTAB(1)                                             CRONTAB(1)

NAME
       crontab - maintain crontab files for individual users (V3)

[ snip ]

SEE ALSO
       crontab(5), cron(8)

[shagster@dev shagster]$ man 5 crontab 

[ snip ]

EXAMPLE CRON FILE
       # use /bin/sh to run commands, no matter what /etc/passwd says
       SHELL=/bin/sh
       # mail any output to `paul', no matter whose crontab this is
       MAILTO=paul
       #
       # run five minutes after midnight, every day
       5 0 * * *       $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
       # run at 2:15pm on the first of every month -- output mailed to paul
       15 14 1 * *     $HOME/bin/monthly
       # run at 10 pm on weekdays, annoy Joe
       0 22 * * 1-5   mail -s "It's 10pm" joe%Joe,%%Where are your kids?%
       23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday"

-- 
Mat Kovach                                      mkovach@xxxxxxxxxxxxxxxxx
Cleveland Linux User Group                       http://cleveland.lug.net