What exactly is the purpose of 'TimeOut' key in launchd plist? I thought a program specified through the first parameter of ProgramArguments will be executed after waiting seconds specified as the value of 'TimeOut'. But this is not happening. I am using Mac OS X version 10.8.2.
The Plist I used is:
<?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>script.test2</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>/var/scripts/test2.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/test2_script.out</string>
<key>StandardErrorPath</key>
<string>/tmp/test2_script.err</string>
<key>TimeOut</key>
<integer>600</integer>
</dict>
</plist>
What I may be doing wrong here?