*     *   *   *    *  command to be executed
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)

 line in crontab file like below  removes the tmp files from /home/someuser/tmp 
each day at 6:30 PM.
30     18     *     *     *         rm /home/someuser/tmp/* 
 
Changing the parameter values as below will cause this command to run at 
different time schedule below :




min
hour
day/month
month
day/week
 Execution time

30
0
1
1,6,12
*
-- 00:30 Hrs  on 1st of Jan, June & Dec.


:

0
20
*
10
1-5
--8.00 PM every weekday (Mon-Fri) only in Oct.


:

0
0
1,10,15
*
*
-- midnight on 1st ,10th & 15th of month


:

5,10
0
10
*
1
-- At 12.05,12.10 every Monday & on 10th of every month

:

--- On Fri, 6/27/08, smart monty <[EMAIL PROTECTED]> wrote:

From: smart monty <[EMAIL PROTECTED]>
Subject: [LinuxVadaPav] Crontab set in Unix
To: [email protected]
Date: Friday, June 27, 2008, 9:48 AM






Hi Alll,

I want to set cron in Unix on Alternate friday of every Month for generate
some report.can anybody suggest me how to do it ?

[Non-text portions of this message have been removed]

 














      

[Non-text portions of this message have been removed]

Reply via email to