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 » General Discussion » Help on MQSC

Post new topic  Reply to topic
 Help on MQSC « View previous topic :: View next topic » 
Author Message
udi
PostPosted: Wed Jan 30, 2008 4:24 am    Post subject: Help on MQSC Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jan 30, 2008 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 30, 2008 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Wed Jan 30, 2008 4:37 am    Post subject: Reply with quote

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
View user's profile Send private message
udi
PostPosted: Wed Jan 30, 2008 4:37 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 30, 2008 4:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jan 30, 2008 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message
udi
PostPosted: Thu Jan 31, 2008 11:18 pm    Post subject: Reply with quote

Newbie

Joined: 30 Jan 2008
Posts: 3

Thanks everybody. Its working now
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Help on MQSC
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.