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 » Shell script to Move messages from queue

Post new topic  Reply to topic Goto page 1, 2  Next
 Shell script to Move messages from queue « View previous topic :: View next topic » 
Author Message
aniket_g24
PostPosted: Mon Jan 04, 2010 10:24 am    Post subject: Shell script to Move messages from queue Reply with quote

Newbie

Joined: 04 Jan 2010
Posts: 1

hi,

I want to write a shell script to move messages from one queue to another queue on the same queue manager. Can anyone gove me the direction to start .
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jan 04, 2010 10:39 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Search here. This has been discussed many, many times.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 04, 2010 10:54 am    Post subject: Re: Shell script to Move messages from queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

aniket_g24 wrote:
Can anyone gove me the direction to start .


Download one of the tools that does this.

Read the instructions.

Decide if you still need to write a script.

Embed the tool in the script.

IMHO if you need to move messages from one queue to another so frequently you need to script it, there's a deeper issue with your set up.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jammerules
PostPosted: Tue Aug 27, 2013 10:12 pm    Post subject: Re: Shell script to Move messages from queue Reply with quote

Newbie

Joined: 27 Aug 2013
Posts: 7

Vitor wrote:
aniket_g24 wrote:
Can anyone gove me the direction to start .


Download one of the tools that does this.

Read the instructions.

Decide if you still need to write a script.

Embed the tool in the script.

IMHO if you need to move messages from one queue to another so frequently you need to script it, there's a deeper issue with your set up.



Whoa...Isn't your "answer" mighty helpful to others!!! If you don't want to answer why don't you just take your privileged seat in the sidelines?
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Aug 27, 2013 11:44 pm    Post subject: Re: Shell script to Move messages from queue Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

jammerules wrote:
Whoa...Isn't your "answer" mighty helpful to others!!! If you don't want to answer why don't you just take your privileged seat in the sidelines?

A friendly word - for your first post, taking a swing at someone's answer to a post is not good etiquette. The answer may have been terse, but still pertinent.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 28, 2013 1:44 am    Post subject: Re: Shell script to Move messages from queue Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

jammerules wrote:
If you don't want to answer why don't you just take your privileged seat in the sidelines?

Because that simply doesn't work.
Back to top
View user's profile Send private message
Tibor
PostPosted: Wed Aug 28, 2013 2:39 am    Post subject: Re: Shell script to Move messages from queue Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

aniket_g24 wrote:
I want to write a shell script to move messages from one queue to another queue on the same queue manager. Can anyone gove me the direction to start .

Firstly you should look for an appropriate tool, e.g. IBM SupportPacs: Q (MA01) or QLOAD (MO03).
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Aug 28, 2013 2:40 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

Take a look at the MA01 Support Pack.

http://www-01.ibm.com/support/docview.wss?uid=swg24000647

It will do what you want and it can be called by a script.

Vitor's answer is spot on, you just couldn't tell that he was singing it.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 28, 2013 4:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Guys - It's a troll trying to get the first post in by "responding" to a 3 year old post. Links to dubious web sites will follow shortly.

But I thank you for your support.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Tibor
PostPosted: Wed Aug 28, 2013 5:00 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

troll alert!
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Aug 28, 2013 5:14 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
Guys - It's a troll trying to get the first post in by "responding" to a 3 year old post. Links to dubious web sites will follow shortly.

But I thank you for your support.

Does that mean you're getting the first round next month?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 28, 2013 5:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

exerk wrote:
Vitor wrote:
Guys - It's a troll trying to get the first post in by "responding" to a 3 year old post. Links to dubious web sites will follow shortly.

But I thank you for your support.

Does that mean you're getting the first round next month?


Always planned to.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jammerules
PostPosted: Wed Aug 28, 2013 5:24 am    Post subject: Reply with quote

Newbie

Joined: 27 Aug 2013
Posts: 7

Vitor wrote:
Guys - It's a troll trying to get the first post in by "responding" to a 3 year old post. Links to dubious web sites will follow shortly.

But I thank you for your support.



I am sorry but it is definitely not a troll. I was astonished at how vague (well at least for me) your response was and hence my reply. I still don't understand the reason behind your "cryptic" answer. Yes, this is my first post on this site but I gave it a good thought before I posted it. I was happy that someone had the same question I did and I was actually hoping for a straight answer. And not all people have the same caliber as Vitor. There are newbies like me that cannot make sense of what that "one of the tools" is.
Back to top
View user's profile Send private message
jammerules
PostPosted: Wed Aug 28, 2013 5:26 am    Post subject: Reply with quote

Newbie

Joined: 27 Aug 2013
Posts: 7

Yes, I did my search here as the first responder suggested but I, sadly, could not find what I was looking for.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 28, 2013 5:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jammerules wrote:
Yes, I did my search here as the first responder suggested but I, sadly, could not find what I was looking for.


Despite several members of my newly formed fan club giving you concrete suggestions?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General Discussion » Shell script to Move messages from queue
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.