On Wed, 2008-09-17 at 18:17 +0900, Mohamed Hussain wrote:
> Hai all,
> Hope everybody fine.
> But
> I am not fine,because I got one assignment from my project head.
> 
> The problem is :-
> 
> 1) To find the Memory usage
> 2) To find the CPU usage
> 3) To find the UPTIME Status
> 4) To find the Hard Disk space(used/available)
> 5) To find the status of Service running (like MYSQL)
> 
> I would like to know,how to write program.
> Is there any way to find all the information above mentioned using Ruby?

Yes, but it is operating-system dependent. For most flavors of Unix,
including Linux, pick up the second edition of the "Swordfish Book",
(System Performance Tuning, 2nd Edition O'Reilly System Administration).
All the command line tools are documented there -- just write Ruby
scripts to run them and parse the output.

Similar tools exist for Windows, but I don't have a book I can recommend.
-- 
M. Edward (Ed) Borasky
ruby-perspectives.blogspot.com

"A mathematician is a machine for turning coffee into theorems." --
Alfrd Rnyi via Paul Erds