launchd plist xml to run job several times a day?

1 Star2 Stars3 Stars4 Stars5 Stars (Please rate this question)
Loading...

I’ve been perusal about using launchd instead of cron.

 

For the vitality of me I can’t catch out how to run a letters at 10AM and 2PM

 

Can you use:

<key>StartCalendarInterval</key>

<dict>

<key>Hour</key>

<integer>10</integer>

<key>Hour</key>

<integer>14</integer>

 

or maybe

 

<key>StartCalendarInterval</key>

<dict>

<key>Hour</key>

<integer>10</integer>

<integer>14</integer>

 

 

Maybe I need 2 plists?

 

If I requested to run it every X summary, I can curriculum that into the XML but I don’t know how you could do several specified times a day… or for that be substantive just on Monday and Friday?

 

I’ve Googled all after hours and can’t catch an example. What is the trick… if there IS a trick?

 

Thanks,

 

Al