Matthew Moss wrote:

> Nice and easy one this week. Your task is to write a Ruby script that
> reports the date and time of your last reboot, making use of  the
> `uptime` command.
> 
> While `uptime` is available on the various Unixes and Mac OS X,
> Windows users might need to do a little extra work. Here are [two][1]
> [options][2] for Windows users.

last | grep reboot | head -1

Am I doing it right? :P

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