Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9204201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:39:14+00:00 2026-06-17T23:39:14+00:00

Am willing to run a script every 45 minute (not the :45th minute of

  • 0

Am willing to run a script every 45 minute (not the :45th minute of every hour)

e.g. 10:00, 10:45, 11:30, 12:15, and so on.

*/45 * * * *

Am not sure this is the correct expression.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:39:16+00:00Added an answer on June 17, 2026 at 11:39 pm

    I suspect (edit: I’m pretty sure by now) that it doesn’t do what you want: fields are separate, and */45 for minutes is nothing more than 0,45. I would use the following three entries if */45 doesn’t do the job:

    0,45  0-23/3 * * *
    30    1-23/3 * * *
    15    2-23/3 * * *
    

    If you take a look at entry.c file in vixie cron sources, you’ll notice that each field of each entry is parsed by get_list and represented as bitmaps of allowed values for that field. That almost precludes any “smart” interpretation, as the distinction of */45 and 0,45 is lost at this stage… but there is a MIN_STAR flag, set at the presence of * in minutes (including */45). So we take a look at cron.c, a single place where MIN_STAR is examined, to learn it’s unrelated to our problem. Now we know for sure that */45 means “every 45th minute of every hour“: 0:00, 0:45, 1:00, 1:45 and so on.

    There were two answers here confidently stating the opposite, quoting an unfortunate passage in the manual:

    Steps are also permitted after an asterisk, so if you want to say
    “every two hours”, just use “*/2”

    We are lucky to have a 24 hour day, containing even number of hours, making “every two hours from 0:00, each day” and “every two hours generally” indistinguishable. Too bad that the manual didn’t go far enough to document non-trivial cases, making the impression that * */22 means every 22 hours. It does not. Star with a step is just a shorthand for a list of values in the field where it’s used; it doesn’t interact with other fields.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure others have run into this problem too... I often watch videos in
While I'm perfectly willing to believe that this has been asked elsewhere, I haven't
Update: I wrote a working script that finishes this job in a reasonable length
Is there a way to run some sort of script or process after a
This is not as much a programming question, as it is a configuration thing.
Let's say I run a site where customers are willing to pay for a
What are the main differences between the two? I'm willing to run only another
This is a minor bug (one I'm willing to live with in the interest
I am willing to ask if anyone has some good algorithm (or ways) to
I am willing to add some inset box-shadow to a tag that is containing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.