crontab vs systemd timers
I waded into a systemd debate on lobste.rs, big mistake.
Anyway it was about timers (i.e. crontab replace) and I really haven't dabbled much with them.
I don't think I'll continue commenting, just wanted to share some interesting things.
According to the docus on the Arch wiki, this is how you schedule a job for the first weekday of a month in systemd timers:
OnCalendar=Sat *-*-1..7 18:00:00
(source: https://wiki.archlinux.org/title/Systemd/Timers)
This is what you have to do in crontab:
https://www.switchplane.com/editorial/2009/how-to-run-a-cron-job-on-the-first-weekday-of-the-month/
# Monday, and the 1st, 2nd or 3rd day of the month 00 10 1-3 * * [ "$(date '+\%a')" == "Mon" ] && /path/to/your/job.sh # Tues - Friday, and the 1st of the month 00 10 1 * * [ "$(date '+\%a')" == "Tue" ] && /path/to/your/job.sh 00 10 1 * * [ "$(date '+\%a')" == "Wed" ] && /path/to/your/job.sh 00 10 1 * * [ "$(date '+\%a')" == "Thu" ] && /path/to/your/job.sh 00 10 1 * * [ "$(date '+\%a')" == "Fri" ] && /path/to/your/job.sh
Note that this is LOCALE dependent, wild!