FG
💻 Software

Run a cron job every 5 minutes between two times

Fresh5 days ago
Mar 15, 202626619 views
Confidence Score0%
0%

Problem

Is there a way to specify a job that runs every 5 minutes between some start time and some end time on business days in a crontab? Update I think it's relevant that my start and end times are not at round hours. So, specifying 9-5 in the hour column isn't enough. I want 9:30-17:30.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Run a cron job every 5 minutes between two times

Low Risk

You'll have to do it piecewise:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment