Query Master
Query Master

Reputation: 7097

18 hours Cron Issue

I am confused about cron jobs. How do I set Cron in 18 hours and 1 min also when I was tried myself like this on schedule task

enter image description here

The result is Cron hit my URL continuously in between these timings 06:00 to 06:59 like this

enter image description here enter image description here

Upvotes: 2

Views: 1433

Answers (3)

Query Master
Query Master

Reputation: 7097

Thanx for sharing your experience @dhchen and @Istvan

I found my answer with the help of your guidance

See the screenshot for verification

enter image description here

Upvotes: 1

Istvan
Istvan

Reputation: 56

in cron there are columns to use.

to run a task at 18:01 every day use this:

(minute) (hour) (day) (month) (day of week)

1 18 * * * command

if you want to run the same command in different time as well, I would suggest adding it again as a new entry.

The * applies to all, that's why it was running every minute

Upvotes: 2

dhchen
dhchen

Reputation: 1198

If you want to run the job every 18 hour, use */18 in hour fields. Also dont forget to set which minute to run that cron job in that hour.

Upvotes: 1

Related Questions