Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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>
share|improve this question
    
Could it be that I left out the Minute pair from StartCalendarInterval? –  richcollins Dec 3 '09 at 18:45

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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