I have a ruby script that gets data from two apis and caches it to a file, and I want to execute it every 30 minutes. The script is located in my script/ directory of my rails app. How can I setup a cron job (what is the syntax) to execute this ruby script every 30 minutes? I currently have this keep-alive job: */5 * * * * wget http://www.mysite.com/index -O - -q >/dev/null 2>&1 But someone helped me out with that one. Would it be: */30 * * * * ruby path/to/the/script/api_cache.rb -O - -q >/dev/null 2>&1 Or does it not work like that? I would appreciate any help! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---