[MacTUG] controlling the time on a LaunchAgent

Donald Duff-McCracken dsmccrac at uwaterloo.ca
Fri Apr 8 16:04:02 EDT 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20160408/57ff1f13/attachment.html>


More information about the MacTUG mailing list