launchd Scheduling

Discussion in 'Mac OS X Server, Xserve, and Networking' started by SecurityTinker, Aug 15, 2011.

  1. SecurityTinker macrumors newbie

    May 11, 2008
    Hello there.

    I am testing out launchd through the use of Lingon because I have heard that it is the best way to schedule things on OS X. Right now I am testing it with a one line command "say". It executes at 12 midnight, daily.

    My dilema is, sometimes, when my computer is sleeping at midnight and I wake it, say at 7 AM, my "say" command will activate. Worse yet, if I have multiple commands running daily and the computer is sleeping, they will all execute at once when the computer is woken. How do I prevent the commands from running if their time has past?
  2. andyboutte macrumors member

    Sep 23, 2009
    I can't say I have ever seen an option for that. The Apple doc says the following:
  3. SecurityTinker thread starter macrumors newbie

    May 11, 2008
    Ah, thank you for that. I guess it was not programmed in. I guess I could hack away at using if statements in my script but then it will not be one line anymore. Ah well.
  4. Mattie Num Nums macrumors 68030

    Mattie Num Nums

    Mar 5, 2009
    What are you trying to schedule? It could be possible that it can be done a different way.

Share This Page