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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:30:13+00:00 2026-06-05T03:30:13+00:00

I need a cron statement to run for few hours eg 1-8 then 10-15.

  • 0

I need a cron statement to run for few hours eg 1-8 then 10-15.
In this case will the following statement work,

0 1-8,10-15 * * * 

If not can anyone help me?

Thanks in advance,
Gnik

  • 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-05T03:30:15+00:00Added an answer on June 5, 2026 at 3:30 am

    You cannot, you can use either multiple values OR a range

    0 1,2,3,4,5,6,7,8,10,11,12,13,14,15 * * *

    Source:

    Time tags are separated by spaces. Do not use spaces within a tag,
    this will confuse cron. All five tags must be present. They are a
    logical AND of each other. There is another space between the last
    time tag and the first command.

    A time tag can be a wildcard “*”, which means “all”. It can be one
    value, several values, a range, or a fractional range.

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

Sidebar

Related Questions

I need every night to run a task by Schedular (CRON). This task can
I need unix cron command to run every 12 hours. I have 500+ sub
I need to run application in every X seconds, so, as far as cron
I need to make a simple if statement for a daily cron job to
I need a cron job to check email accounts and download certain attachments. This
I need this cron job to execute my shell just as it does when
i need to make a cron job to run a java program every 40
I need to change the following cron so that it only tars images with
I need to make a bot who can automatically add a cron job for
Ok so I have a cron that I need to run every 30 seconds.

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.