Cheat sheet
Schedule a task with launchd
-
Create a
Property List XML file(.plist) to define the job and schedule -
Verify the
plistfile withplutil -lint <plist_file> -
For
User Agents, copy theplistfile to$HOME/Library/LaunchAgents -
Load the job with
launchctl bootstrap gui/$(id -u) <plist_file> -
Resources