# Running script on Windows XP

**URL:** <https://www.ruby-forum.com/t/running-script-on-windows-xp/187157>\
**Category:** Ruby\
**Created:** [April 18, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157 "2010-04-18T20:32:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-black](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Post date:** [April 18, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157/1 "2010-04-18T20:32:25Z")

</div>

Hi

I’m using Ruby 1.9.1p378 on Windows XP and I’m having a very bad time  
trying to run a script with no errors - I am opening a CMD windows and  
typing

ruby test.rb

Then I am opening several HTML page - I am NOT ‘puts’ -ing them, just  
parsing them with nokogiri.

What I get is all the html I am parsing being output. I get this even if  
I comment out all puts statements.

Is there something about nokogiri or ruby that coule be doing this?

Thanks

Joe

---

<div class="post-metadata">

**Author:** ![joe-black](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Post date:** [April 18, 2010, 8:44pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157/2 "2010-04-18T20:44:00Z")

</div>

Joe B.s wrote:

> Hi
> 
> I’m using Ruby 1.9.1p378 on Windows XP and I’m having a very bad time  
> trying to run a script with no errors - I am opening a CMD windows and  
> typing
> 
> ruby test.rb
> 
> Then I am opening several HTML page - I am NOT ‘puts’ -ing them, just  
> parsing them with nokogiri.
> 
> What I get is all the html I am parsing being output. I get this even if  
> I comment out all puts statements.
> 
> Is there something about nokogiri or ruby that coule be doing this?
> 
> Thanks
> 
> Joe

Hi, I think you will be happy with instantrail!

i am on windows 7 and it works perfectly!

[http://instantrails.rubyforge.org/wiki/wiki.pl](http://instantrails.rubyforge.org/wiki/wiki.pl)

---

<div class="post-metadata">

**Author:** ![joe-black](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Post date:** [April 18, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157/3 "2010-04-18T20:49:34Z")

</div>

On 4/18/2010 12:32 PM, Joe B.s wrote:

> What I get is all the html I am parsing being output. I get this even if  
> I comment out all puts statements.
> 
> Is there something about nokogiri or ruby that coule be doing this?
> 
> Thanks
> 
> Joe

No. If you provide code however, we might be able to tell you what is.

---

<div class="post-metadata">

**Author:** ![joe-black](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Post date:** [April 18, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157/4 "2010-04-18T20:47:49Z")

</div>

On Mon, Apr 19, 2010 at 03:32:28AM +0900, Joe B.s wrote:

> parsing them with nokogiri.
> 
> What I get is all the html I am parsing being output. I get this even if  
> I comment out all puts statements.
> 
> Is there something about nokogiri or ruby that coule be doing this?

It’s hard to say. Can you put the contents of “test.rb” somewhere so  
that we can review the code?
