I think you need to use system(). system("ruby test1.rb")
----- Original Message ---- From: Maumita <maumita.majum...@gmail.com> To: Watir General <watir-general@googlegroups.com> Sent: Thursday, August 13, 2009 3:26:52 AM Subject: [wtr-general] Not able to run automatically a script automatically using rufus-scheduler 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 -~----------~----~----~----~------~----~------~--~---