I'm trying to use launchd for the first time, I wish to automate some scripts. When I try load my file I get the following error:
"Load failed: 109: Invalid property list"
Filename: com.test.daemon.plist
This is the command I'm entering into terminal:
sudo launchctl load -w /Library/LaunchDaemons/com.test.daemon.plist
Script:
<?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>test.plist<</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python</string>
<string>playground.py</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/apollo/pycharm/pythonProject3</string>
<key>StartInterval</key>
<string>20</string>
</dict>
</plist>
What am I doing wrong?