问题描述:

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

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

网友答案:

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

网友答案:

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.

网友答案:

Thanx for sharing your experience @dhchen and @Istvan

I found my answer with the help of your guidance

See the screenshot for verification

相关阅读:
Top