Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Created June 10, 2014 23:48
Show Gist options
  • Save tjluoma/3eb159418636c8f02fa0 to your computer and use it in GitHub Desktop.
Save tjluoma/3eb159418636c8f02fa0 to your computer and use it in GitHub Desktop.
`launchd` plist to run `updatebrew.sh` at 3:03 a.m. every night
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin</string>
</dict>
<key>Label</key>
<string>com.tjluoma.updatebrew</string>
<key>Program</key>
<string>/usr/local/bin/updatebrew.sh</string>
<key>RunAtLoad</key>
<false/>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>3</integer>
<key>Minute</key>
<integer>3</integer>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment