I've tried this plist file in both /Library/LaunchAgents and /Library/LaunchDaemons but neither seem to work. I can run the shell script it's supposed to call from the command line and it works fine. I edited the plist to run at a time two or three minutes from the current time and it runs fine, but when I leave it to run at night (computer on, admin user/me logged in or not) it never runs and nothing ever shows up in the log. Script is owned by me and permissions are 755, plist is owned by root and permissions are 744. System is running OS X 10.8.x. Thanks.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>local.Daily.Backup.plist</string> <key>OnDemand</key> <true/> <key>RunAtLoad</key> <false/> <key>Program</key> <string>/Users/hansgruber/backup/dailyBackup.sh</string> <key>StartCalendarInterval</key> <dict> <key>Weekday</key> <integer>1</integer> <key>Hour</key> <integer>20</integer> <key>Minute</key> <integer>15</integer> </dict> </dict> </plist>