How do I make cron run something every "N"th minute, where n % 5 == 1?

mike :

I know that I can have something run every five minutes in cron with a line like:

 */5 * * * * /my/script

What if I don't want it running at 12:00, 12:05, 12:10, but rather at 12:01, 12:06, 12:11, etc? I guess I can do this:

 1,6,11,16,21,26,31,36,41,46,51,56 * * * * /my/script

...but that's ugly. Is there a more elegant way to do it?

David Z :
1-56/5 * * * * /my/script

This should work on vixiecron, I'm not sure about other implementations.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


How do I do something every n-th attempt?

How do I make this function in Google sheet run "every minute"?

How to run a CRON every 8h and 1 minute

Why does my cron job run every 1 minute although I set it every 1 hour?

How to run cron in serverless for every minute?

How to run a cron job to execute every minute?

jenkins cron: run every 3rd minute, starting at 1

How do I run a script for 1st working day of every month in cron?

How can I bring Electron app to foreground every "N" minute?

how to run this script in cron.d every minute?

How to run a cron jobs in every minute for a specific hour on server

How to make every n'th elements in a list in a list of their own?

How do i Replace every n-th character x from an String

How can I redo something every minute in python

Do something every 1-5 iteration

How to make cron run only 42 times in 10 minute intervals?

How to make a N×N matrix each of i-th row and i-th column having all the elements 1 to 2N-1?

Run a cron job every minute, meaning of syntax

Running a cron job every 5 minute on arch

python apscheduler not execute by cron for every 1 minute

spring cron for running every hour at 35th minute

How do we insert \n every n-character or/and after n-th space in a string in R?

Make backups every N minute via Windows backup tool

How to run an iOS application every 1 minute infinitely?

How do I get the nth minus the (n-1)th term from a dataframe in R?

How do I cout a vector[5][1] N number of times

How do I make this more efficient- Consider the fraction, n/d, where n and d are positive integers

How to emit every n-th value?

How do I set a cron job for every 5 minutes without using the minutes divisible by 5?

TOP Ranking

  1. 1

    How can I create a column whose entries depend on the contents of a column in another table?

  2. 2 port in URL

  3. 3

    How to display items using sessions

  4. 4

    BigQuery - concatenate ignoring NULL

  5. 5

    no applicable method for 'mutate_' applied to an object of class "c('integer', 'numeric')"

  6. 6

    How i extract text from a model dialog in selenium?

  7. 7

    x no applicable method for 'tbl_vars' applied to an object of class "c('double', 'numeric')"

  8. 8

    AirflowException: Celery command failed - The recorded hostname does not match this instance's hostname

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    Most efficient regex for checking if a string contains at least 3 alphanumeric characters

  11. 11

    using excel range find return Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

  12. 12

    redirect your computer port to url

  13. 13

    Can't create database with Symfony 4.1 : could not find driver

  14. 14

    How to fix "Exception evaluating SpringEL expression" error after submitting a variable Spring/Thymeleaf

  15. 15

    A python function to get the maximum value of a specific column, given a string that represents a table in CSV format

  16. 16

    Double spacing in rmarkdown pdf

  17. 17

    Uploading Files on production server returns either CORS error or POST 400 Bad Request using Apollo-Graphql

  18. 18

    Android Kotlin Unit test failing with io.mockk.MockKException: no answer found for

  19. 19

    Change Model input_shape but got an : ValueError: Input 0 of layer dense_44 is incompatible with the layer

  20. 20

    Formik, Yup - How to check is Decimal number

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class