Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   example in ruby for implimenting scheduling by rufus-schedul (http://www.velocityreviews.com/forums/t849142-example-in-ruby-for-implimenting-scheduling-by-rufus-schedul.html)

Bishnu Das 03-24-2008 09:42 AM

example in ruby for implimenting scheduling by rufus-schedul
 
hi all,
I am new to ruby on rail. my requirement is to add two
numbers in ruby using rufus-scheduler .

my code is as follows:-

require 'rubygems'
require 'rufus/scheduler'

scheduler =Rufus::Scheduler.new
scheduler.start
scheduler.schedule_every('5s')do

a=1
b=4
c=a+b
puts c

end
the Error is as follows:-


C:/Aptana/Aptana
Studio/plugins/org.jruby_1.1.0.5965_RC2p1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require': no such file to load -- kk/rufus-scheduler-1.0.5 (LoadError)
from C:\Aptana Studio\kk\logon.rb:4
from C:\Aptana Studio\kk\logon.rb:1


i have downloaded the rufus-scheduler 1.0.5 version and impliment in my
programme. but it show error. actually i have no so much idea about the
setup of rufus-scheduler .can any body help me in this regard.thanks
advance for your help.
--
Posted via http://www.ruby-forum.com/.


John Mettraux 03-24-2008 09:53 AM

Re: example in ruby for implimenting scheduling by rufus-schedul
 
On Mon, Mar 24, 2008 at 6:42 PM, Bishnu Das
<bishnuprasaditpradipta_das@mindtree.com> wrote:
> hi all,
> I am new to ruby on rail. my requirement is to add two
> numbers in ruby using rufus-scheduler .


Hi Bishnu,

the mailing list for the Rufus-Scheduler is at :

http://groups.google.com/group/rufus-ruby

To subscribe without a gmail account :

http://groups.google.com/support/bin...606&topic=9244



Anyway :

"`require': no such file to load -- kk/rufus-scheduler-1.0.5 (LoadError)"

seems to indicate that your logon.rb is trying to load
"kk/rufus-scheduler-1.0.5" which probably doesn't exist.



Best regards,

--
John Mettraux -///- http://jmettraux.openwfe.org



All times are GMT. The time now is 01:21 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.