I'm writing my first launchd plist. When I try to load it with the following command:
$ launchctl load com.Test01.plist
launchctl: no plist was returned for: com.Test01.plist nothing found to load
The plist is supposed to execute a shell command which writes the date to a file. The plist file follows. It is in ~/Library/LaunchdAgents
.
The hardware is a MacBook Air 11 running OS X 10.8.4 Thanks for any comments.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Aple//DTD PLIST 1.0//EN">
<plist version="1.0">
<dict>
<key>label</key>
<string>com.Test01</string>
<key>ProgramArguments</key>
<array>
<string>/Users/cae/scripts/testcron.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>Nice</key>
<integer>1</integer>
<key>StartInterval</key>
<integer>60</integer>
<key>StandardErrorPath</key>
<string>/Users/cae/tmp/Test01.err</string>
<key>StandardOutPath</key>
<string>/Users/cae/tmp/Test01.out</string>
</dict>
</plist>