LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2005, 07:09 PM   #1
ecampos02
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
how to write utilities


How would i write a utility containing the following information CPU, memory, version of the Linux kernel, hardware and boot information, kernel modules, disk usage, free disk space, processes, %CPU usage, %MEM usage, uptime, who's logged in, etc.?
 
Old 12-13-2005, 12:41 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Quote:
Originally Posted by ecampos02
How would i write a utility containing the following information CPU, memory, version of the Linux kernel, hardware and boot information, kernel modules, disk usage, free disk space, processes, %CPU usage, %MEM usage, uptime, who's logged in, etc.?
Wow, that's a lot of work. You are better of using one of the many applications that does it already. Gkrellm is very popular:

http://members.dslextreme.com/users/...m/gkrellm.html

it accepts themes and is quite useful, with a good amount of eye candy

Torsmo:

http://torsmo.sourceforge.net/

My personal favorite. Instead of running on your desktop, it runs on the root screen, kinda like a background. The application is noticeable smaller then gkrellm, so you might check out the source code for this.

Root-tail:
http://www.goof.com/pcg/marc/root-tail.html

Another simple application, similar to torsmo, but instead of display CPU, HD, RAM etc, if shows your log messages. Also worthy checking out.

Now, if you want to write things like this from scratch, you will need loads of good understanding of programming and especially how Linux works.

Good luck!
 
Old 12-13-2005, 04:08 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
You know how to find out the output from command line right? If so, just put that in a bash script and format it the way you want it. It's not too hard...just tedious work that is involved.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using partition utilities... M O L8ingN2dust Linux - Software 6 10-30-2005 06:21 PM
X configuration and utilities nagromo Linux - Software 3 04-10-2005 05:41 PM
Best Utilities antidelldude Linux - Newbie 3 01-12-2005 05:32 PM
Are there utilities to do this? jbrush Linux - Newbie 2 12-06-2004 12:00 PM
LM utilities maddog Linux - Hardware 3 07-19-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration