How to run cron once, daily at 10pm

user420095 picture user420095 · Jan 20, 2012 · Viewed 343k times · Source

I had entered:

* 22 * * * test > /dev/null

However, I am being notified via email that this is running every minute. I am confused I guess because I thought this was correct for what I am wanting.

Answer

Marc Simon picture Marc Simon · Jan 20, 2012

It's running every minute of the hour 22 I guess. Try the following to run it every first minute of the hour 22:

0 22 * * * ....