Cron Jobs on the First Saturday of the Month

Configuring cron jobs to run on the first day of the month is straightforward. Running cron jobs on a specific first day of the month is not.

In the house network monthly cron jobs are run on the first Saturday of the month. This requires configuring the task to run on day 6, but that alone is insufficient.

To ensure the task is run only on the first Saturday, the cron job is qualified with:

if [ $(date +\%-d) -lt 8 ]; then /usr/bin/run-parts /etc/cron.monthly; fi

Posted: Category: Usability Tagged: General

Next: Laptop Battery Management

Previous: Nano Text Editor and $TERM