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 » IBM MQ Java / JMS » Script to recreate a new file in MQ

Post new topic  Reply to topic
 Script to recreate a new file in MQ « View previous topic :: View next topic » 
Author Message
mreddington
PostPosted: Fri Nov 10, 2006 8:11 am    Post subject: Script to recreate a new file in MQ Reply with quote

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
Back to top
View user's profile Send private message
malammik
PostPosted: Fri Nov 10, 2006 8:27 am    Post subject: Reply with quote

Partisan

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.

And check out this tutorial.
http://www.abrillant.com/doc/linux/index.html
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Fri Nov 10, 2006 9:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Of course, you shouldn't be building a production workflow using a sample program.

But you already knew that.
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Java / JMS » Script to recreate a new file in MQ
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.