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 IBM MQ Support » runmqsc params

Post new topic  Reply to topic
 runmqsc params « View previous topic :: View next topic » 
Author Message
skytorch
PostPosted: Fri Jul 26, 2002 7:36 am    Post subject: runmqsc params Reply with quote

Apprentice

Joined: 10 Jun 2002
Posts: 47
Location: New York City

Hi,

Is it possible to pass commands directly in runmqsc command line ? e.g.
runmqsc QM1 < "alter channel ..." instead of using
runmqsc QM1 < config-file

What I try to do is to provide a script for people to change mqobjects at runtime. Ideally the script will take some parameters passed into some commands such as runmqsc QM1 < "alter channel(CH1) .." rather than you have to manually modify the config file first then run the script to runmqsc QM1 < config-file

Thanks.

Sky
Back to top
View user's profile Send private message
mrlinux
PostPosted: Fri Jul 26, 2002 8:05 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

yes you can do

echo alt qmgr deadq(DUMMY) | runmqsc QMGR_NAME

you will need to place quotes around the command for unix platforms.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Fri Jul 26, 2002 9:29 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

You can also look at the makeq.pl sample program in the software repository. It shows how a perl script can call runmqsc and interact with it directly. The advantage of this over simply redirecting a text file into runmqsc from the command line is that the perl script can actually parse the results of each command it issues and base future actions on the results of previous ones.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
skytorch
PostPosted: Wed Jul 31, 2002 9:48 am    Post subject: Reply with quote

Apprentice

Joined: 10 Jun 2002
Posts: 47
Location: New York City

Brandon,

Where's the software repositary and this makeq.pl file? I checked MQ install dir. But didn't find it.

Thanks.

Sky
Back to top
View user's profile Send private message
jc_squire
PostPosted: Wed Jul 31, 2002 12:00 pm    Post subject: Reply with quote

Centurion

Joined: 14 Apr 2002
Posts: 105
Location: New Zealand

go to the home page of mqseries.net and you will see the links to the software repository.

Regards
_________________
J C Squire
IBM Certified Specialist - MQSeries
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 » General IBM MQ Support » runmqsc params
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.