[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Development & Programming  |  Topic: Hi plz.. help me in finding the command
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Hi plz.. help me in finding the command  (Read 989 times)
0 Members and 1 Guest are viewing this topic.
rammu_sivraj
New Member

Offline Offline

Posts: 2


View Profile
« on: June 29, 2006, 06: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
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Gender: Male
Posts: 529


View Profile
« Reply #1 on: July 04, 2006, 02: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:

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
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Yahoo CHAT and finding the IP of the user during chat Forum Talk taraj 1 2530 Last post April 19, 2004, 11:11:30 AM
by dragoncity99
make command Linux Kernel « 1 2 3 » smb2004 34 8486 Last post May 11, 2005, 10:47:16 AM
by /root
awk command Linux Development & Programming mrsinghal 1 1328 Last post March 30, 2005, 04:03:45 AM
by neo
How to search for a particular file using ls command Miscellaneous taraj 1 729 Last post September 19, 2005, 12:37:48 AM
by gauravbajaj
cp command or mv or ? Miscellaneous craig_linuxsolved 3 686 Last post October 29, 2009, 11:13:19 AM
by dragoncity99
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 29, 2010, 10:27:18 AM

Login with username, password and session length
Navigation
Recent Discussions
[July 24, 2010, 11:46:22 PM]

[July 24, 2010, 04:10:46 PM]

[July 23, 2010, 07:22:27 AM]

[July 23, 2010, 07:20:53 AM]

[July 23, 2010, 07:19:15 AM]

[July 23, 2010, 07:15:30 AM]

[July 23, 2010, 07:08:21 AM]

[July 19, 2010, 11:01:10 PM]

[July 19, 2010, 10:01:58 AM]

[July 19, 2010, 01:21:00 AM]
Members
Total Members: 7690
Latest: BOZZYPRINCESS
Stats
Total Posts: 9524
Total Topics: 2729
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 9
Total: 9
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc