Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Linux in General => Linux Development & Programming => Topic started by: rammu_sivraj on June 29, 2006, 10:40:04 AM
-
Hi..
Actually.. i'm trying to write a script which shud display the number of semaphores and no of shared memeory of the my linux system..
what commands 'll do this.. plz do help me
Rammu
-
For semaphores, read the the following link....hope it helps u:
http://www.postgresql.org/docs/7.4/static/kernel-resources.html
For memory:
u can use the command:
root# free
Ok, some tips writing the script....
1. Use awk for handling field separators
2. Write a good commented script
3. Write a good logger to re-use all the time
4. Learn to use the debugger mode for shell scripts, when u face notorius and hard to find errors ***WARNING ---> This is very resource expensive***
For tip#4 go here --->
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html