Originally Posted by rammu_sivraj
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.
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
the number of semaphores
echo $(expr $(ipcs -s | wc -l) - 4)
no of shared memory
echo $(expr $(ipcs -m | wc -l) - 4)