how to set cron job to run every 5 mins?
OK, I know to set like
0,5,10,15,20,25,30,35,40,45,50,55 run_command is there any better syntax? |
Hello,
Perhaps */12 |
well your syntax is WRONG. correct syntax would be (for each 5 mins, not limited to hour, day of month, month, day of week):
Quote:
|
If you distro supports /etc/cron.d dir you could also use
Quote:
|
Hello,
If I want to start the job at every 5mins. But I want it to start from the second minutes of each hour. i.e. 2,7,12,17,.... How should I write? |
Might I ask what the heck you are trying to accomplish?
|
Quote:
Why he wants to do it isn't really up to you now is it? If you know the answer, simple tell him and make someone happy. |
2-57/5 * * * * /path/to/command
--works for me I'm running crond on RedHat |
All times are GMT -5. The time now is 01:42 PM. |