no print output for rufus-scheduler on winxp

14 views
Skip to first unread message

John Mettraux

unread,
Nov 10, 2008, 9:12:40 AM11/10/08
to rufus...@googlegroups.com, j...@offroadcode.com
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

John Mettraux

unread,
Nov 10, 2008, 9:53:23 AM11/10/08
to j...@offroadcode.com, rufus...@googlegroups.com
On Mon, Nov 10, 2008 at 11:42 PM, Jim McKerchar
<jim.mc...@btinternet.com> wrote:
> Thanks for the speedy response.
>
> It seems that the problem was that i had not joined the scheduler at the end
> of the script. This has solved the problem thankyou. You may want to update
> the readme file as there is not mention of using scheduler.join ( or am i
> missing something )
>
> Thankyou again for the help. I look forward to having a play with
> rufus-scheduler.

Hello,

done : http://github.com/jmettraux/rufus-scheduler/commit/5a5f6a2155ea4dbbbdc869687a0817705e1bbf1b


Thanks,

Reply all
Reply to author
Forward
0 new messages