search

Home  >  Q&A  >  body text

php - linux crontab problem

How to write an execution every 5 minutes between 9 pm and 8 am the next day? ?

phpcn_u1582phpcn_u15822725 days ago738

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-06-16 09:20:45

    Write them separately, because the time range is 0-23, so it cannot span the number of days.

    */5 0-8,21-23 * * * commands

    reply
    0
  • 高洛峰

    高洛峰2017-06-16 09:20:45

    0 */5 21-8 * * ?

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-06-16 09:20:45

    Um,:

    */5 0-8,21-23 * * * cmd

    reply
    0
  • Cancelreply