How to run cron every 245 minutes?
*/5 */4 * * * command
- this variant is true?
Or need to run?
*/5 4 * * * command
Asked
Active
Viewed 420 times
2 Answers
1
The correct way is
5 */4 * * * command
That mean the job will run on minute: 5 of every 4 hours

Tuyen Nguyuen
- 11
- 2
1
Below is correct for Red Hat Based Linux( RHEL,Fedora,Centos etc. ) or maybe on Ubuntu too.
5 */4 * * * command.
But for Solaris Based Operating System, You can use below one :
5 0,4,8,12,16,20 * * * command
But this runs every 240 minutes.
As per your requirement its not possible with normal cron.
You can check the replacement of cron like the one given below:

Ramdas Gaikar
- 76
- 4