From: Glen Holcomb Date: 2008-04-04T05:26:07+09:00 Subject: Re: execute method at a certain time ------=_Part_4906_17973570.1207254364638 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How about something like this: sleep(time_to_go - Time.now) Of course this needs a little work to actually function but I would think it could work for you. On Thu, Apr 3, 2008 at 1:55 PM, andy wrote: > I have written a ruby script that needs to run all the time, then at a > certain time of day it needs to execute a specific method. > > what is the best way of doing this ? > > I could have the first script dump its data to a file all the time and > then have second script set up to run as a cron job but is there a way to do > this all in one script ?. > > Thanks > > -- > Eps > > -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_4906_17973570.1207254364638--