Need help with rubyw

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!

On Fri, Dec 12, 2008 at 12:43 PM, Rasmus R. [email protected]
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