Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ipcs / ipcrm question

Status
Not open for further replies.

visvid

Technical User
Jun 3, 2002
131
GB
Hi,

does anyone know what the helpful command is for using ipcrm in multiple kills

I have run ipcs | grep mqm which has given me a thousand rogue processes , but i cant figure out how to kill more than one , ie ipcrm -m xxxxx


Anyone know a good script which would do this , ie to look for either group name or sem/metaphore and then kill the lot


cheers


visvid
 
You may also find this useful:

ipcrm `ipcs | awk '/'"$1"'/ { print "-"$1, $2 }' `

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top