From: Phillip Gawlowski Date: 2011-06-29T04:06:53+09:00 Subject: Re: clock-scheduled operations On Tue, Jun 28, 2011 at 8:58 PM, Chad Perrin wrote: > > The first thing that comes to my mind is checking Time.now, checking the > time between that and the desired time of day, then spawn a thread that > sleeps for that length of time (because I need the program to do other > things in the meantime).  Is there a better way to do this? There is: Cron jobs on *NIX or Task Scheduler on Windows. You have no guarantee that your program is running, and Cron/Task Scheduler can run tasks that *have* to occur, even after the original time has passed. -- Phillip Gawlowski A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.                -- Leibniz