Scroll down to "Cron-style time specifications" on http://launchd.info/ (tl;dr: it's tedious unless you use LaunchControl)

On 4/8/16 4:04 PM, Donald Duff-McCracken wrote:
Greetings

I have a launch agent that is running every 5 minutes on a server. It is working fine. I really only need it to check the process during working hours.I would like to only have it check during working hours. 

I know how to get it to run every X seconds (which is what I am doing now).

   	 <key>StartInterval</key>
    	<integer>300</integer>

 I also know how to get it to run at a specific time or day.

    <key>StartCalendarInterval</key>

        <key>Minute</key>
        <integer>45</integer>
        <key>Hour</key>
        <integer>13</integer>
        <key>Day</key>
        <integer>7</integer>

But I don’t know how to get it to run during a range of time, and every X seconds during that time. It is not really hurting running after working hours, it just sort of conceptually bugs me that it is doing it! ;-)

Does anyone know the syntax to have a launch agent/daemon run every 5 minutes from 8 to 5? As I said it is not hurting anything running, so don’t waste time on an answer but if you want to show off, here is a chance ;-)
------------------------------------
Donald Duff-McCracken 
Technical Services Manager
Mapping, Analysis & Design
Faculty of Environment
University of Waterloo
(519) 888-4567 x32151
https://uwaterloo.ca/environment-computing/about/people
------------------------------------
This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and If you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited.  If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately.


_______________________________________________
MacTUG mailing list
MacTUG@lists.uwaterloo.ca
https://lists.uwaterloo.ca/mailman/listinfo/mactug

-- 
Dawn Keenan
IT Director, Arts Computing Office, University of Waterloo
dkeenan@uwaterloo.ca
519-888-4567 x32157
PAS 2081A