0

I'm using launchd to run a script that should run once per day. Instead it runs a number of times (like 40) until it finally stops. Here is the 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>KeepAlive</key>
<false/>
<key>Label</key>
<string>emailStats</string>
<key>Program</key>
<string>[redacted]</string>
<key>UserName</key>
<string>[redacted]</string>
<key>ExitTimeOut</key>
<integer>7200</integer>
<key>StartCalendarInterval</key>
<dict>
    <key>Hour</key>
    <integer>9</integer>
</dict>
<key>StandardOutPath</key>
    <string>[redacted]</string>
    <key>StandardErrorPath</key>
    <string>[redacted]</string>
</dict>
</plist>
  • Could it be that I left out the Minute pair from StartCalendarInterval? – richcollins Dec 3 '09 at 18:45
3

If you leave ou the Minute pair, it runs every minute.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.