crontab time

good day..how can I simply create a cron job that will be executed every 5mins from 12:01 to 7Pm..

is it like this

*/5 12:01-19 * * * <path>

You can't include minutes in the hours field.

---------- Post updated at 09:15 AM ---------- Previous update was at 09:06 AM ----------

You could have one entry at 12:01, and one entry for every 5 minutes...

Use this:

*/5 * * * <path>

If you really need for the command to run one minute after midnight, then every 5 minutes thereafter, you can include logic inside your "<path>" routine to ensure this, use the "sleep" command after checking the current minutes, perhaps with the date command: date +%M ... you might consider adding in a lock check too, if the sleep logic causes undesired overlap executions of the "<path>" routine.

thanks..what if 5mins from 12:ooam to 7Pm..?