1

I have a ruby script open.rb

require 'launchy'

 Launchy.open("http://stackoverflow.com")

Now what i want is that in a day i run script first time than it should run after every 10 minute. so is there any way to do this and here i am using windows 7.

After google on this i got a way to do it Ruby on Rails with worker as a background job but that is not my solution so is there any possible way to do it or is there any gem to do this task.

and also how can i clear chache before running this.

SSP
  • 2,650
  • 5
  • 31
  • 49

1 Answers1

1

The solution is to use Windows Scheduler.

To set the task run every 10 minutes, follow the solution in this Stack Overflow question: windows scheduler to run a task every x-minutes?

UPDATE: here is a way to run associate Ruby script to ruby.exe : https://stackoverflow.com/a/1422398/188331 ( you can make a batch script )

Community
  • 1
  • 1
Raptor
  • 53,206
  • 45
  • 230
  • 366