Run a command every 2 minutes Monday to Friday SystemD OnCalendar Snippet in a Specific Timezone

by Oct 15, 2025IT Tips0 comments

Just tried to check an OnCalendar snippet based on syntax mentioned on another website and it errored out

systemd-analyze calendar 'Mon..Fri *-*-* *:*/2:00 Australia/Sydney'
Failed to parse calendar specification 'Mon..Fri *-*-* *:*/2:00 Australia/Sydney': Invalid argument

This worked (notice the 0 instead of the *)

systemd-analyze calendar 'Mon..Fri *-*-* *:0/2:00 Australia/Sydney'

Dropping the date and just specify the time

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.