Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Launchctl job to auto-upload to github
<?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>
@jenny-codes
Copy link
Author

jenny-codes commented May 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment