# Need help with rubyw

**URL:** <https://www.ruby-forum.com/t/need-help-with-rubyw/155492>\
**Category:** Ruby\
**Created:** [December 12, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/need-help-with-rubyw/155492 "2008-12-12T12:50:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crumb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@crumb](https://www.ruby-forum.com/u/crumb)\
**Post date:** [December 12, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/need-help-with-rubyw/155492/1 "2008-12-12T12:50:57Z")

</div>

Hello,

I’m planning to run ruby setup script from lots of testclasses (NUnit)  
so I need to hide the console window. But starting process from C# with  
rubyw only returns error.

Then I try this helloworld-like test:

> echo sleep(5) \> tst.rb  
> ruby tst.rb  
> (sleeps 5 secs)

> rubyw tst.rb  
> (terminates immediately)

Why no sleep with rubyw?

What should I do to hide console window? My OS is MS Server 2003

Thanks!

---

<div class="post-metadata">

**Author:** ![crumb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@crumb](https://www.ruby-forum.com/u/crumb)\
**Post date:** [December 12, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/need-help-with-rubyw/155492/2 "2008-12-12T13:06:19Z")

</div>

On Fri, Dec 12, 2008 at 12:43 PM, Rasmus R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> (sleeps 5 secs)
> 
> > rubyw tst.rb  
> > (terminates immediately)
> 
> Why no sleep with rubyw?  
> Oh it sleeps just fine, but in a background process, this is the same as  
> typing  
> sleep 5 &  
> in a bash shell, does not make lot’s of sense.  
> HTH  
> Robert  
> –  
> Il computer non è una macchina intelligente che aiuta le persone  
> stupide, anzi, è una macchina stupida che funziona solo nelle mani  
> delle persone intelligenti.  
> Computers are not smart to help stupid people, rather they are stupid  
> and will work only if taken care of by smart people.

Umberto Eco
