Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Sample Mac OS X `launchd` script to run DITA builds hourly
<?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>net.infotexture.autobuild_hourly</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/username/projectdir/scripts/run-dita-build.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key> <!-- ◄ Start job in regular intervals -->
<integer>3600</integer> <!-- ◄ Start every 3600 seconds (1 h) -->
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment