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 6550735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:15:08+00:00 2026-05-25T12:15:08+00:00

I had to split some larger crons and an easy way was to just

  • 0

I had to split some larger crons and an easy way was to just take the last two digits of the id. So id 10001 would run at the same time as 1,101,201,…1001,2001,etc.

Instead of a single cron taking hours to run, they now are split 100 times and run much more consistently.

However, how can I schedule a cron to run every 100 minutes, starting at x?

example:

php cron.cli 00   start at 12:01am and run every 100 minutes
php cron.cli 01   start at 12:01am
php cron.cli 02   start at 12:02am
     . . .
php cron.cli 99   start at 1:39am
php cron.cli 00   start at 1:40am [looping every 100 minutes]
php cron.cli 01   start at 1:41am

I need cron 01 to start at 12:01am, cron 02 to start at 12:02am and cron 99 to start at 1:39am. And every hundred seconds afterward, respectively.

Can you help?

  • 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-05-25T12:15:09+00:00Added an answer on May 25, 2026 at 12:15 pm

    I would only write one entry into the crontab file. The one command would start the cron.cli script and passing the current time as a parameter.

    The cron-cli script then takes that parameter and creates the id in question out of it. That made, the file is much simpler to manage, as you won’t mess the crontab file with soo many entries. And imagine your 100 steps become 200 steps or even more … .

    * * * * * php cron.cli $(date +\%R)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data represented in a 1300x1341 matrix. I would like to split
Ok, it's friday afternoon, and i've had a long week so would appreciate some
I had an add_column migration that would run fine. However, after running it and
My site has just recently run into some issues with High CPU usage from
I had a debate about macros and their readability. I think that in some
I have some relatively large legacy method that I would like to refactor. It
I had some CSS like this: a { display: block } a:focus { background:
I was glancing through some code I had written in my Perl class and
I've had quite a few problems and know that I can get some good
Coming from a ruby background, I'm wishing NSString had some convenient methods like the

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.