Sample Mac OS X `launchd` script to run DITA builds at midnight
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>net.infotexture.autobuild_midnight</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>StartCalendarInterval</key><!-- ◄ Start job at specified times --> | |
<dict> | |
<key>Hour</key> | |
<integer>0</integer> <!-- ◄ Start at midnight (00:00, 12 AM) --> | |
<key>Minute</key> | |
<integer>0</integer> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment