Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
How to ignore the minute part in cron?
*/41 * 6-20 ? * * *

so I have this cron expression and I want it to send a command every 41 seconds e.g. if it sends a message at 2:00:00 the next message should be sent at 2:00:41 but it also sends a message at 2:01:00 but I don't want it to send a message at 2:01:00 so how can I fix it?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have */41 in the minutes specifier - that means every 41st minutes.

#       .---------------- minute (0 - 59)
#       |       .------------- hour (0 - 23)
#       |       |       .---------- day of month (1 - 31)
#       |       |       |       .------- month (1 - 12) OR jan,feb,mar,apr ...
#       |       |       |       |       .----- day of week (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
#       |       |       |       |       |
#       *       *       *       *       *  

Since cron does not go down to sub-minute resolutions, you will need to find another way(for eg: you can use sleep)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!