Crontab- Quick Reference

Format

*     *     *   *    *        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)

Syntax

*               All valid values
A-B           A range of values
A,B,Z        Mutliple Values

Example

10 2 * * *                 Every day at 2:10 AM
0 2 1 6,12 *             2AM on 1st of June, Dec
0 2 * * 1-5               2AM every week day

Comments

Popular posts from this blog

Distributed database design using CAP theorem

SQL Analytical Functions - Partition by (to split resultset into groups)

Easy approach to work with files in Java - Java NIO(New input output)