December 18, 2017, 10:53:04 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Hi plz.. help me in finding the command  (Read 2019 times)

Offline rammu_sivraj

  • New Member
  • Posts: 2
Hi plz.. help me in finding the command
« 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

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Hi plz.. help me in finding the command
« Reply #1 on: July 04, 2006, 06:14:54 AM »
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:
Code: [Select]

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