Author |
Message
|
webspherical |
Posted: Thu Aug 25, 2005 11:05 am Post subject: using scripts to start and stop a channel |
|
|
Acolyte
Joined: 15 Aug 2005 Posts: 50
|
on linux using WMQ 5.3, what is the command that I can put in a script to start/stop a sender channel?
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 25, 2005 11:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Aug 25, 2005 11:23 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
jefflowrey wrote: |
echo "stop channel(<channel name>)"|runmqsc <qmgrname>
Oddly enough, that will work on Windows, as well. |
Remove the double quotes (") and it will work on Windows.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
webspherical |
Posted: Thu Aug 25, 2005 12:00 pm Post subject: |
|
|
Acolyte
Joined: 15 Aug 2005 Posts: 50
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 25, 2005 12:47 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
RogerLacroix wrote: |
Remove the double quotes (") and it will work on Windows. |
Eh?
Oh.
Lookee there! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pythonrocks |
Posted: Fri Sep 02, 2005 12:13 pm Post subject: single quote |
|
|
 Newbie
Joined: 08 Aug 2005 Posts: 3
|
RogerLacroix wrote: |
jefflowrey wrote: |
echo "stop channel(<channel name>)"|runmqsc <qmgrname>
Oddly enough, that will work on Windows, as well. |
Remove the double quotes (") and it will work on Windows.
Regards,
Roger Lacroix |
I 've tried this on my Win 2k Pro and it works with single quote around the channel name.
echo stop channel('channel') | runmqsc |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Sep 02, 2005 1:38 pm Post subject: Re: single quote |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
pythonrocks wrote: |
RogerLacroix wrote: |
jefflowrey wrote: |
echo "stop channel(<channel name>)"|runmqsc <qmgrname>
Oddly enough, that will work on Windows, as well. |
Remove the double quotes (") and it will work on Windows.
Regards,
Roger Lacroix |
I 've tried this on my Win 2k Pro and it works with single quote around the channel name.
echo stop channel('channel') | runmqsc |
The single quotes are only neccessary if you have lower case characters in the object name.
@webspherical - I'm wondering why you don't just set the XMITQ up so it will TRIGGER instead of using a script........  _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
|