💻 Software
How can I create a cron job that runs a task every three weeks?
Fresh5 days ago
Mar 15, 20269703 viewsConfidence Score0%
0%
Problem
I have a task that needs to be performed on my project schedule (3 weeks). I'm able to set up cron to do this every week, or (for example) on the 3rd week of every month - but can't find a way to do this every three weeks. I could hack the script to create temporary files (or similar) so it could w…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I create a cron job that runs a task every three weeks?
Low Risk
The crontab file only lets you specify: So it's not possible to specify which weeks should apply. Writing a wrapper script may be the best option. You could get the week number in a shell-script by using or depending on whether you like your weeks t…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix