Author |
Message
|
udi |
Posted: Wed Jan 30, 2008 4:24 am Post subject: Help on MQSC |
|
|
Newbie
Joined: 30 Jan 2008 Posts: 3
|
Hi!
I am new to UNIX as well as Websphere MQ. The problem I am facing is given below:
I am running the Websphere MQ application on a Sun Solaris platform by using the command "[color=red]runmqsc[/color]" . After that I am able to display all the LISTENERS with "[color=red]DISPLAY LISTENER[/color](*)" command. But besides displaying I want to save the output of the DISPLAY LISTENER command in a file.
Can anyone suggest how to do so? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 30, 2008 4:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
A simple solution would be to redirect the stdout of runmqsc into a file.
Any competent Unix book / website will guide you on this.
There's nothing "MQish" about runmqsc in this context. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 30, 2008 4:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Of course, you can also use ms0s to run this, and then copy/paste the results text into a new file.
If you want to take the long way around. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mvic |
Posted: Wed Jan 30, 2008 4:37 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Vitor wrote: |
Any competent Unix book / website will guide you on this. |
For example:
Code: |
echo "dis ql(*) all" | runmqsc QMNAME | tee out.txt |
|
|
Back to top |
|
 |
udi |
Posted: Wed Jan 30, 2008 4:37 am Post subject: |
|
|
Newbie
Joined: 30 Jan 2008 Posts: 3
|
Hi Vitor,
That is what I want to know! That how to redirect the stdout of runmqsc into a file. Once I get into the MQSC mode no UNIX command will be working! |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 30, 2008 4:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mvic wrote: |
For example:
Code: |
echo "dis ql(*) all" | runmqsc QMNAME | tee out.txt |
|
If you want to take the long way around!
I suppose the original poster did say
Quote: |
besides displaying I want to save the output |
I'd otherwise not bother with tee, myself. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 30, 2008 4:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
udi wrote: |
That is what I want to know! That how to redirect the stdout of runmqsc into a file. Once I get into the MQSC mode no UNIX command will be working! |
Unless you redirect stdin as well, as the sample kindly provided by mvic shows.
This cat can be skinned in a number of interesting ways. It's your choice how you do it; whatever's best for you really. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
udi |
Posted: Thu Jan 31, 2008 11:18 pm Post subject: |
|
|
Newbie
Joined: 30 Jan 2008 Posts: 3
|
Thanks everybody. Its working now  |
|
Back to top |
|
 |
|