mercredi 11 mars 2015

Launchd to only run on schedule, not restart?


I have a script that I wan to set for 3:30am daily and it does run at the set time but it also runs on every restart of the computer which I do not want.


How do I make this work with just the schedule in place and not run on every startup of the computer?


Here's my plist:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://ift.tt/vvUEPL">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.xxxxx.xxxx</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Scripts/script.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>30</integer>
<key>Hour</key>
<integer>3</integer>
</dict>
</dict>
</plist>




Aucun commentaire:

Enregistrer un commentaire