Posted: Fri Jul 26, 2002 7:36 am Post subject: runmqsc params
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
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
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