I'm trying to run a script (
zfssnap.sh) to automate snapshots, but one of the arguments needs to change based on which time entry triggers the script to start. With cron, I would just add a new line with the changed argument and set the time fields accordingly.
In reading the
launchd.conf man pages, I'm not seeing any way to associate an argument with a specific
StartCalendarInterval key entry. This seems like a significant limitation, so perhaps I'm missing something?
Is there a way change an argument based on the time the script is being run? Or, do I have to make a new plist for each of the situations I'm trying to satisfy?