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 Installation/Configuration Support » using scripts to start and stop a channel

Post new topic  Reply to topic
 using scripts to start and stop a channel « View previous topic :: View next topic » 
Author Message
webspherical
PostPosted: Thu Aug 25, 2005 11:05 am    Post subject: using scripts to start and stop a channel Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 25, 2005 11:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

echo "stop channel(<channel name>)"|runmqsc <qmgrname>

Oddly enough, that will work on Windows, as well.

http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi?CTY=US&FNC=SRX&PBL=SC34659700
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Aug 25, 2005 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
webspherical
PostPosted: Thu Aug 25, 2005 12:00 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

thank you!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 25, 2005 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
pythonrocks
PostPosted: Fri Sep 02, 2005 12:13 pm    Post subject: single quote Reply with 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
View user's profile Send private message
csmith28
PostPosted: Fri Sep 02, 2005 1:38 pm    Post subject: Re: single quote Reply with 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
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 Installation/Configuration Support » using scripts to start and stop a channel
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.