Author |
Message
|
prasadam |
Posted: Wed Jul 13, 2005 9:39 am Post subject: Reading a message and interpreting MQMD structure from SHELL |
|
|
Newbie
Joined: 11 Jul 2005 Posts: 4
|
Hey Guys,
How you all doing?. This is my first post on the site.
I am wondering whether we can read MQ - messages via K shell script on an AIX box. Also I like to read properties of the message like priority, sending application etc from the shell.
Any help/pointers are greatly appreciated.
Thank you very much
Prasad. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 13, 2005 9:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Do you know Perl very well? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Jul 13, 2005 9:59 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Ma89 supportpac provides an API for perl scripts. As far as I know, there's nothing for ksh (outside of running a utility that dumps the message to a file and then parsing the file, but that's messy and probably not very reliable) _________________ -wayne |
|
Back to top |
|
 |
prasadam |
Posted: Wed Jul 13, 2005 11:28 am Post subject: |
|
|
Newbie
Joined: 11 Jul 2005 Posts: 4
|
This is the site and forum to get help. Thank you all.
Thank you very much for your quick replies.
Yes, from your help I see I can do things with PERL.
So, let us say I go with PERL. In project documentation what should I note down: like...
Right now, there is NO way to read MQ messages and/or issue MQI calls via shell.
OR shall I write..
There may be methods but they are too costly to implement rather than to go with this PERL solution.
Thanks,
Prasad. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Jul 13, 2005 11:33 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I'd vote for:
"Right now, there is NO way to read MQ messages and/or issue MQI calls via a shell script (other than PERL)". _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 13, 2005 12:42 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
prasadam wrote: |
Right now, there is NO way to read MQ messages and/or issue MQI calls via shell. |
No direct way.
Backticks make anything possible. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Jul 13, 2005 8:10 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
All,
<Vendor Plug>
Well, the MQ Batch Toolkit (MQBT) can definitely fill this void. In your shell script, it can invoke MQBT to read 1 or messages from a queue and output it to stdout (or a file).
With the '-M' parameter, it will also output the MQMD header.
For more information on MQ Batch Toolkit or to download a 30-day trial, go to:
http://www.capitalware.biz/mqbt_overview.html
</Vendor Plug>
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|