I guess, you'll need a BIG cup of coffee ;-) Hubert
> -----Ursprüngliche Nachricht----- > Von: MQSeries List <[email protected]> > Gesendet: 27.03.07 15:19:40 > An: [email protected] > Betreff: Re: Multiple FilterConditions > Try typing that stuff at 2:00 in the > morning... > > > > > > Hubert Kleinmanns <[EMAIL PROTECTED]> > > Sent by: MQSeries List <[email protected]> > > > 03/27/2007 07:41 AM > > > Please respond to > MQSeries List <[email protected]> > > > > To > [email protected] > > cc > > Subject > Re: Multiple FilterConditions > > > > > > > > > Brien, > > the command below is valid for names or attributes which contain valid > characters for MQ object names - but feel free, to add channel name support > ;-) > > Try these four lines: > > chl_name="my_channel" > qmgr_name="my_qmgr" > conname=`echo "DISPLAY CHL($chl_name) CONNAME" | runmqsc -e $qmgr_name > | grep CONNAME | sed -e > "s|.*CHANNEL(\([-()\.A-Za-z0-9._/%][-()\.A-Za-z0-9._/%]*\)).*|\1|"` > echo $conname > > :-))) > > Regards > Hubert > > > > -----Ursprüngliche Nachricht----- > > Von: MQSeries List <[email protected]> > > Gesendet: 26.03.07 23:52:15 > > An: [email protected] > > Betreff: Re: Multiple FilterConditions > > > > > q_type =`echo "DISPLAY Q(<q_name>) TYPE" | runmqsc > -e <qmgr_name> | grep TYPE | sed -e > "s!.*TYPE(\([A-Za-z0-9._/%][A-Za-z0-9._/%]*\)).*!\1!"` > > > > And the attribute you seek doesn't contain a paren itself. > > > > I admit that that's unlikely with the TYPE attribute, but > > CONNAME, for example, can be a PITA to parse. :-) > > > > -- > > --Brian T. Shelden [EMAIL PROTECTED] > > Shelden & Associates, Inc. > Austin, TX 78748-2319 > > Certified MQSeries Specialists > +1 (512) 535-1428 > > > > To unsubscribe, write to [EMAIL PROTECTED] and, > > in the message body (not the subject), write: SIGNOFF MQSERIES > > Instructions for managing your mailing list subscription are provided > in > > the Listserv General Users Guide available at http://www.lsoft.com > > Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html > > > > -- > Hubert Kleinmanns > Beratung / Schulung / Projektleitung > > Tel.: +49 (0) 60 78 / 7 12 21 > Fax: +49 (0) 60 78 / 7 12 25 > Mobil: +49 (0) 178 / 6 97 22 54 > Web: www.kleinmanns.eu > > To unsubscribe, write to [EMAIL PROTECTED] and, > in the message body (not the subject), write: SIGNOFF MQSERIES > Instructions for managing your mailing list subscription are provided in > the Listserv General Users Guide available at http://www.lsoft.com > Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html > > > > ----------------------------------------------------------------- > List Archive - > Manage Your List Settings - > Unsubscribe > > > Instructions for managing your mailing list subscription are provided in the > Listserv General Users Guide available at http://www.lsoft.com > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu To unsubscribe, write to [EMAIL PROTECTED] and, in the message body (not the subject), write: SIGNOFF MQSERIES Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
