Launchctl job to auto-upload to github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Label</key> | |
<string>notes.upload</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>[your directory]</string> | |
<key>Program</key> | |
<string>/usr/local/bin/git_pushall</string> | |
<key>StartCalendarInterval</key> | |
<array> | |
<dict> | |
<key>Hour</key> | |
<integer>20</integer> | |
<key>Minute</key> | |
<integer>03</integer> | |
</dict> | |
<dict> | |
<key>Hour</key> | |
<integer>10</integer> | |
<key>Minute</key> | |
<integer>03</integer> | |
</dict> | |
</array> | |
<key>StandardOutPath</key> | |
<string>[wherever you wish your log file to be]</string> | |
<key>StandardErrorPath</key> | |
<string>[wherever you wish your log file to be]</string> | |
</dict> | |
</plist> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
key reference:
https://en.wikipedia.org/wiki/Launchd