Need help with rubyw

R

Rasmus Rasmussen

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!
 
R

Robert Dober

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:

(sleeps 5 secs)

(terminates immediately)

Why no sleep with rubyw?
Oh it sleeps just fine, but in a background process, this is the same as ty=
ping
sleep 5 &
in a bash shell, does not make lot's of sense.
HTH
Robert
--=20
Il computer non =E8 una macchina intelligente che aiuta le persone
stupide, anzi, =E8 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,797
Messages
2,569,647
Members
45,376
Latest member
Coy6815793

Latest Threads

Top