Here how i think it should be:

1. The code needs to be run from windows 7 scheduled tasks at a specific 
task.

2. The code will be multi-threaded so it can run external commands using 
exec or something similar.

3. Check the external program you want to run it from ruby, can you 
control it by passing commands to it ? eg: bittorent -x -h

4. The ruby code checks the current time to a predefined "shutdown" 
time-value, if they match it can shut down the computer by running an 
external task eg: "shutdown"

Thats all i guess.

-- 
Posted via http://www.ruby-forum.com/.