Operating System - HP-UX
1837896 Members
3367 Online
110122 Solutions
New Discussion

What command do I use to remove entries returned by ipcs -mb -Need to remove entry without rebooting

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

What command do I use to remove entries returned by ipcs -mb -Need to remove entry without rebooting

I need to remove a shared memory entry without rebooting. ipcs -mb shows a memory segment for a user that I no longer want. To fix the problem last time I had to reboot.

jack...
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: What command do I use to remove entries returned by ipcs -mb -Need to remove entry without rebooting

Jack:

See man 'ipcrm'.

Use 'ipcs -mo' to get the shared memory information and usage. Note the MEMID in question.

Then, issue 'ipcrm -m $MEMID'

...JRF...
Suhas_2
Regular Advisor

Re: What command do I use to remove entries returned by ipcs -mb -Need to remove entry without rebooting

Jack,
You can use ipcrm.
There are different options available
viz...
-m to clear shared memory.
-s for semaphores...
-q for message queue..

Rgds...
Suhas.
Never say "Die"