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 IBM MQ Support » rcdmqimg

Post new topic  Reply to topic
 rcdmqimg « View previous topic :: View next topic » 
Author Message
QueenBee
PostPosted: Wed Sep 29, 2004 1:09 pm    Post subject: rcdmqimg Reply with quote

Apprentice

Joined: 28 May 2003
Posts: 43
Location: Grand Rapids, MICHIGAN

I am trying to capture the output of the rcdmqimg command on my AIX server into a /tmp/mqlog file.

But it is giving the output to the screen and not writing anything to the /tmp/mqlog file.

AM I doing something wrong? Help!

The exact command I am running is as follows:

rcdmqimg -l -m QUEUEMGR -t qmgr > /tmp/out

I am running MQ 5.3.0.4 on AIX 5.2.

Thanks.
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Sep 29, 2004 4:17 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Are you getting a Unix error or any kind of syntax error.

try

rcdmqimg -l -m QUEUEMGR -t qmgr 2&1> /tmp/out
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 29, 2004 5:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

csmith28 is right
You are only redirecting the primary output (sysout) to the file.
However rcdmqimg does not have any primary output, only secondary output (syserr).

You need to use
Code:
rcdmqimg -l -m QUEUEMGR -t qmgr 2> /tmp/out
or like csmith28 wrote redirect both the sysout and syserr output to the same file.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Nigelg
PostPosted: Wed Sep 29, 2004 11:43 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

I do not think csmith28's command works as expected, and the syntax ois not right.
What it does is cause the output on stderr to go to the same device as the output from stdout (still the console), and then redirect stdout to the file, leaving stderr still going to the console. The 2&1 directive does not bind the outputs together, it is just shorthand for 'send stderr to the same place as stdout', and applies only to the current destination of stdout.
The command should be
cmd > file 2>&1
so that stderr is redirected to the same device as stdout after stdout has been redirected to the file.
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 IBM MQ Support » rcdmqimg
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.