Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-08-2005, 01:36 AM   #1 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default HELP shell scripting!!


I want to develop a shell script which dispalys system information like CPU speed,RAm,processor type etc.
So far i have been able to knowonly one variable -> $HOSTNAME
If anybody know more shell variables like thisplease post here or post complete shell script!
mediator is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-08-2005, 11:53 AM   #2 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

Not everything is available through shell variables. You must look into your /proc filesystem to get more info about your harware.

Here's your shell script: hostinfo.sh
Code:
#!/bin/sh
# File hostinfo.sh (C) Anurag.

echo **** Host Info ****
echo -e "\n--- CPU Info ---"
cat /proc/cpuinfo | grep model
cat /proc/cpuinfo | grep MHz
echo -e "\n--- Memory Info ---"
cat /proc/meminfo | grep MemTotal
echo -e "\n--- USB Hubs ---"
lspci | grep USB
echo -e "\n--- Graphics Hardware ---"
lspci | grep VGA
echo -e "\n--- System Uptime ---"
uptime
echo -e "\n-- Kernel Version ---"
cat /proc/version
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 13-08-2005, 12:28 AM   #3 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default

that was nice,hanx!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 13-08-2005, 12:33 AM   #4 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

Quote:
Originally Posted by GNUrag
# File hostinfo.sh (C) Anurag.
Hey Anurag, are you copyrighting it ???

Release it under GPL man :D
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2