I'm trying to use rufus-scheduler to run automatically a script in
every 1 hr. But not able to do that..
This is the script -

require 'rubygems'
require 'rufus/scheduler'

class Scheduler
  def start
    scheduler = Rufus::Scheduler.start_new
    scheduler.every '1h' do
      puts "running test"
      `ruby test1.rb`
    end
    scheduler.join
  end
end

Running test1.rb at the command line pops up an instance of IE,log in
to the application,search a keyword and log out from application.

How to run this script?
Is there anything I am missing?
Please help.

Thanks
Maumita
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to