|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
rcdmqimg |
« View previous topic :: View next topic » |
Author |
Message
|
QueenBee |
Posted: Wed Sep 29, 2004 1:09 pm Post subject: rcdmqimg |
|
|
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 |
|
 |
csmith28 |
Posted: Wed Sep 29, 2004 4:17 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Sep 29, 2004 5:58 pm Post subject: |
|
|
 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 |
|
 |
Nigelg |
Posted: Wed Sep 29, 2004 11:43 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|