• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running a program at regular intervals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a program at regular intervals


  • Subject: Re: Running a program at regular intervals
  • From: Nicholas Riley <email@hidden>
  • Date: Sun, 23 Feb 2003 21:33:49 -0600
  • Mail-followup-to: Jeremy Faller <email@hidden>, email@hidden

On Sun, Feb 23, 2003 at 10:04:41PM -0500, Jeremy Faller wrote:
> All:
>
> Hello there. I have a quick question that I'm sure people can help
> me with (and I couldn't find a good answer in the archives).
>
> Let's pretend I have a Cocoa program that I would like to run at a
> regular interval -- think Apple's Software Updater". This program
> wants to run once a week, and if the day it is scheduled to run passes,
> it runs during the next boot/wakeup.
>
> Short of writing a little daemon that runs my application, does
> anyone have an idea how to ensure that this happens? (I'm drawn to think
> of at or cron, but I'm inclined to believe that neither are run when a
> computer wakes; and, I think at jobs are lost on reboots...)

IMO, OS X desperately needs such a general-purpose scheduler service.
There's loginwindow's scheduler (which Software Update uses), and
cron, and the sleep/wakeup notification service, etc., and there's no
real unified, Mac-friendly way of scheduling stuff.

So if loginwindow's scheduler and/or cron are inadequate, please
consider writing something. :)

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Running a program at regular intervals
      • From: Thomas Harrington <email@hidden>
    • Re: Running a program at regular intervals
      • From: Dan Bernstein <cocoa-dev%email@hidden>
References: 
 >Running a program at regular intervals (From: Jeremy Faller <email@hidden>)

  • Prev by Date: Table View with no selection
  • Next by Date: SQL
  • Previous by thread: Running a program at regular intervals
  • Next by thread: Re: Running a program at regular intervals
  • Index(es):
    • Date
    • Thread