Author |
Message
|
shanms |
Posted: Mon Jul 14, 2014 8:52 pm Post subject: Automation scripts |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
For triggering message in a particular queue on regular bases ,i need scripts
please help me. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 14, 2014 9:59 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you really want help on this you will need to be way more specific.
What have you tried and what was the result of your attempt...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shanms |
Posted: Thu Jul 17, 2014 8:57 pm Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
I am looking for scripts which is automatically trigger the text massage on a Queue for regular interval periods. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jul 17, 2014 9:38 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
So you are looking for a job scheduler?
If I was using Unix or Linux then I'd be looking 'cron'.
Windows has a primitive equivalent but on that platform, I use 'zcron'.
Then you can write something that does
amqsput QUEUE QUEMANAGER < trigger_message_file
IF you are looking for something else then you have to explain your requirements in a lot more detail. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Thu Jul 17, 2014 10:57 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Impressive - something more primitive than "cron". I didn't think anything could be... _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 18, 2014 5:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zpat wrote: |
I didn't think anything could be... |
"I am attempting, madam, to build a mnemonic computer circuit out of stone knives and bear skins" _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jul 21, 2014 3:30 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
shanms wrote: |
I am looking for scripts which is automatically trigger the text massage on a Queue for regular interval periods. |
Is this what you are asking? :
I am looking for a script that will run at a regular interval to cause a trigger to occur on a queue?
(... and this will result in the "trigger monitor" starting a process, which will get any messages that may be on the queue) _________________ Glenn |
|
Back to top |
|
 |
shanms |
Posted: Mon Jul 21, 2014 9:27 pm Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
yes Glean,what you explain that's what i need. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 22, 2014 5:29 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
shanms wrote: |
yes Glean,what you explain that's what i need. |
cron.
at. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 22, 2014 5:32 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Vitor wrote: |
zpat wrote: |
I didn't think anything could be... |
"I am attempting, madam, to build a mnemonic computer circuit out of stone knives and bear skins" |
Yes, it's the scrubbing floors to buy the parts, that I object to...  _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jul 22, 2014 3:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
shanms wrote: |
yes Glean,what you explain that's what i need. |
OK, use a job scheduler to run a script that calls runmqsc with 2 commands, alter the queue to NOTRIGGER and then alter the queue to TRIGGER. This forces a trigger event to occur. _________________ Glenn |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jul 22, 2014 3:57 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
gbaddeley wrote: |
shanms wrote: |
yes Glean,what you explain that's what i need. |
OK, use a job scheduler to run a script that calls runmqsc with 2 commands, alter the queue to NOTRIGGER and then alter the queue to TRIGGER. This forces a trigger event to occur. |
That assumes you have MQ admin authority. Alternatively you could write a short program that opens the queue and uses mqset to toggle TRIGGER. _________________ Glenn |
|
Back to top |
|
 |
shanms |
Posted: Sun Jul 27, 2014 9:45 pm Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
Thanks guys ,i got the script |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jul 28, 2014 5:13 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
shanms wrote: |
Thanks guys ,i got the script |
Please share with us what you've accomplished. _________________ 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 |
|
 |
shanms |
Posted: Mon Jul 28, 2014 10:07 pm Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
AMQSPUT Queuename QMGRname <text message
I created one bat file and copied the above command |
|
Back to top |
|
 |
|