learner
learner

Reputation: 159

PHP - Cron Job Run At Specific Date & time

How to identify that cron job will run on specific Date&Time with help of cron expression Only

Upvotes: 7

Views: 14105

Answers (4)

user2231109
user2231109

Reputation: 1

If you want to start with the crontab time/date values and then see a list of future run-times try the cron sandbox at dataphyx.

Upvotes: 0

Manish Sahu
Manish Sahu

Reputation: 325

Structure for cron job parameters

Minutes [0-59]
    |   Hours [0-23]
    |   |   Days [1-31]
    |   |   |   Months [1-12]
    |   |   |   |   Days of the Week [Numeric, 0-6]
    |   |   |   |   |
    *   *   *   *   * home/path/to/command/the_command.sh

Upvotes: 9

Amir
Amir

Reputation: 4111

If you use apache control panel, refer to it. usually it has a cron job section with good help and example

Upvotes: 0

Eernie
Eernie

Reputation: 469

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

Replace the * with the values you need.

Upvotes: 13

Related Questions