LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2006, 02:29 AM   #1
rammu_sivraj
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
Hi semaphore and shared memory


Hi..
plz give e the commands which 'll print no of semaphores in our system snd commands which 'll print no of shared memory
Rammu
 
Old 06-29-2006, 04:04 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
ipcs

The message is too short, I have to write something more in order to post. I love chocolate. Why this limitation? I don't understand. Avoiding accidental posting of empty message?

Last edited by Agrouf; 06-29-2006 at 04:05 AM.
 
Old 06-29-2006, 05:15 AM   #3
rammu_sivraj
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Agrouf
ipcs

The message is too short, I have to write something more in order to post. I love chocolate. Why this limitation? I don't understand. Avoiding accidental posting of empty message?
Hi Agrouf..,
I'm really sorry. i'm in a hurry thats y..
Actually.. i'm trying to write a script which shud display the number of semaphores and no of shared memory in my linux system
what commands 'll do this.. plz do help me
Rammu

Last edited by rammu_sivraj; 06-29-2006 at 05:16 AM.
 
Old 06-29-2006, 11:47 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Quote:
Originally Posted by rammu_sivraj
Hi Agrouf..,
I'm really sorry. i'm in a hurry thats y..
No no no, I was not talking about you, I was just ranting about the fact that you can't write a post of 4 letters but the ipcs command has just 4 letters. I still wonder why they put this limitation on posts.
Your post was fine.
Quote:
Actually.. i'm trying to write a script which shud display the number of semaphores and no of shared memory in my linux system
what commands 'll do this.. plz do help me
Rammu
the number of semaphores
echo $(expr $(ipcs -s | wc -l) - 4)
no of shared memory
echo $(expr $(ipcs -m | wc -l) - 4)
 
Old 06-29-2006, 11:49 AM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Quote:
Originally Posted by rammu_sivraj
Hi Agrouf..,
I'm really sorry. i'm in a hurry thats y..
No no no, I was not talking about you, I was just ranting about the fact that you can't write a post of 4 letters but the ipcs command has just 4 letters. I still wonder why they put this limitation on posts.
Your post was fine.
Quote:
Actually.. i'm trying to write a script which shud display the number of semaphores and no of shared memory in my linux system
what commands 'll do this.. plz do help me
Rammu
the number of semaphores
echo $(expr $(ipcs -s | wc -l) - 4)
or
ipcs -su

no of shared memory
echo $(expr $(ipcs -m | wc -l) - 4)
or
ipcs -mu
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
shared memory/semaphore problem V_Ganesh Programming 1 03-31-2005 10:58 PM
How to change shared memory and semaphore config on RHL9? ryanw Linux - Software 1 01-18-2005 10:14 AM
About Shared Memory...? aegis_shiva Programming 1 08-25-2004 05:05 AM
shared memory socket9001 Programming 4 02-06-2004 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration