launchd Scheduling

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

  1. SecurityTinker macrumors newbie

    Joined:
    May 11, 2008
    #1
    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

    Joined:
    Sep 23, 2009
    #2
    I can't say I have ever seen an option for that. The Apple doc says the following:


    http://developer.apple.com/library/.../Reference/ManPages/man5/launchd.plist.5.html
     
  3. SecurityTinker thread starter macrumors newbie

    Joined:
    May 11, 2008
    #3
    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

    Joined:
    Mar 5, 2009
    Location:
    USA
    #4
    What are you trying to schedule? It could be possible that it can be done a different way.
     

Share This Page