# Ruby on Windows questions

**URL:** <https://www.ruby-forum.com/t/ruby-on-windows-questions/66002>\
**Category:** Ruby\
**Created:** [August 22, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/ruby-on-windows-questions/66002 "2006-08-22T20:17:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [August 22, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/ruby-on-windows-questions/66002/1 "2006-08-22T20:17:28Z")

</div>

Gotta port some software to Windows… ☹ I’m a Windows newbie.

Using Ruby on Windows (XP)…

1. How do I find out the CPU % (or some sort of a load indicator) of  
the machine?

2. How do I find out how much of a given ethernet connection is being  
used? (i.e. if it’s a gigabit connection and 1Mbps are being used,  
I’d like to get back “1%”.

3. Starting programs into the background is done the same way as on  
\*nix, right?

4. How can I tell how much of a CPU a program is currently using?

5. How do I start a Ruby program at boot (a service)?

6. Can I use something like ruby2exe to package up my Ruby service?

7. Does Windows use signals? How can I tell a program that I’ve  
started to stop (i.e. on \*nix, I’d do it via SIGTERM or SIGKILL).

8. Any known issues with DRb and Windows?

Any help is greatly appreciated!

Joe

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [August 22, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-on-windows-questions/66002/2 "2006-08-22T20:49:33Z")

</div>

On 8/22/06, Joe Van D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> started to stop (i.e. on \*nix, I’d do it via SIGTERM or SIGKILL).
> 
> 1. Any known issues with DRb and Windows?
> 
> Any help is greatly appreciated!

Also, is there a Ruby idiom for how to properly do platform-specific  
stuff?

My first instinct is to have something like ("end"s omitted)

module OS\_Services  
module POSIX  
module Linux  
module 2.4  
module 2.6  
module BSD  
module Solaris  
module OSX  
module Windows  
end

And then query (somehow) what OS I’m on and including the appropriate  
modules.

Joe
