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>
1
  • Could it be that I left out the Minute pair from StartCalendarInterval? Dec 3, 2009 at 18:45

1 Answer 1

3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .