Installation
sudo gem install rufus-scheduler
Sample usage:require 'filetorun'
require 'rufus/scheduler'
class Scheduler
def start
scheduler = Rufus::Scheduler.start_new
scheduler.every '20s', :blocking =>; true do
puts "running test"
`ruby filetorun.rb`
end
scheduler.join
end
end
Scheduler.new.start
No comments:
Post a Comment