Just wondering if there is a way to schedule a timer for the first business day of every month? Basically the first day of every month which is not a weekend. I am trying to avoid creating a wrapper script if possible
Just wondering if there is a way to schedule a timer for the first business day of every month? Basically the first day of every month which is not a weekend. I am trying to avoid creating a wrapper script if possible
[Timer]
OnCalendar=Mon..Fri *-*-1..3 00:00:00
This executes the service
The intersection of these directives leads to the first business day (Monday to Friday) of every month.
Examples:
Source: ArchWiki