February 20, 2019, 07:20:37 PM

News : LinuxSolved.com Linux Help Community Forum..

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

Offline rammu_sivraj

  • New Member
  • Posts: 2
Hi plz.. help me in finding the command
« on: June 29, 2006, 10:40:04 AM »
     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

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:

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 --->