Jim wrote at
http://jmettraux.wordpress.com/2008/07/18/rufus-scheduler-109-released/:
>
> Hi John. I've been meaning to have a look at scheduler for a little while now and have finally
> been given a job which suits scheduler down to the ground. However i installed the gem, copied/pasted
> the example code and found that the examples didn't work. I'm developing on WinXP and
> wonder whether there are any known issues with the gem Windows systems?
>
> The code is:
> require 'rubygems'
> require 'rufus/scheduler'
>
> scheduler = Rufus::Scheduler.start_new
>
> scheduler.every "10s" do
> print( "This should be output every ten seconds" )
> end
>
> It sits for 10 seconds and the terminates. Any ideas
Hello Jim,
no special messages when installing the gem ?
Did you try to use "puts" instead of "print" ?
Do you "join" the scheduler at the end of your script ? (Seems that
yes since you mention it sits for 10 seconds).
Which ruby are you using ? (version and distribution)
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com