ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » ipcs command

Post new topic  Reply to topic Goto page Previous  1, 2
 ipcs command « View previous topic :: View next topic » 
Author Message
euphoria
PostPosted: Sat Jun 03, 2006 3:22 pm    Post subject: Reply with quote

Acolyte

Joined: 08 Feb 2004
Posts: 51

Well, This always worked for me on HP and AIX.

ipcs -a | grep mqm | while read d1 d2 d3
do
ipcrm -$d1 $d2
done
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Jun 05, 2006 12:14 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Did you read the conditions necessary for the failure?

Here is the first part of ipcs output:
Quote:
s 393216 0x66009222


It is possible for the ID to be 10 chars long, and the output would look like this:
Quote:
s1234393216 0x66009222


In that case your script would fail, because the 2nd positional parameter is now KEY, not ID.

Incidentally, why does the script read KEY from the input but do nothing with it?
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
euphoria
PostPosted: Tue Jun 06, 2006 4:54 am    Post subject: Reply with quote

Acolyte

Joined: 08 Feb 2004
Posts: 51

Thats a good one to know. Thanks Nigelg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » ipcs command
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.