Posted: Fri Nov 10, 2006 8:11 am Post subject: Script to recreate a new file in MQ
Voyager
Joined: 14 Aug 2006 Posts: 78
Hi all,
I am putting the contents of a file (say fileA.config) onto a queue remote to send it to a remote location (onto a local queue on remote machine QMGRB).
amqsput RemoteQueueName QMGRA < fileA.config (this works perfectly fine, in that, i am able to send the contents of fileA.config onto the remote machine's local queue)
Now i want to create a file (say fileB.config) on the remote machine. I am using the amqsget command on the remote machine as follows:
amqsget LocalQueueName QMGRB > fileB.config
I am able to create the file but the contents of LocalQueueName is not transferred into the file. Why is it so? How will I able to create the file (fileB.config) with the contents i have in the LocalQueueName(sent from fileA.config)?
I really appreciate any suggestion here...
Thanks a lot in advance
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
Try this
amqsget LocalQueueName QMGRB 2> fileB.config
OR
this
amqsget LocalQueueName QMGRB > fileB.config 2>&1
If you only see last output use >> instead to append.
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