On Wed, 7 Jun 2006, Hunter Walker wrote:

> I want to run a particular script every 3 minutes.  I would do this
> using crontab in Linux, but I am having trouble getting that to work.
> The script works fine from the Windows or Linux command line, however.
>
> I thought it might be easier to add some code to the end of the script
> that tells it to sleep for three mins and then start at the beginning.
>
> Any thoughts?  As always, I appreciate your help.
>
> -Hunter
>
> -- 
> Posted via http://www.ruby-forum.com/.


sleep 180
exec ["ruby" + ARGV].join(' ')

-a
-- 
suffering increases your inner strength.  also, the wishing for suffering
makes the suffering disappear.
- h.h. the 14th dali lama