Now if anyone tries teh above it will just end at teh point of opening runmqsc as it is exepecting interacction if you type end it then tries running the channel definition against c:\*.* which of course will not work
Posted: Wed Mar 08, 2006 12:49 am Post subject: piping into runmqsc from shellscript
Novice
Joined: 04 Oct 2005 Posts: 10
another nice way would be piping from a shellscript with labels:
LABEL must be placedin a new line on column 0.
Code:
#! /usr/bin/bash
$FROMQM=QM1
$TOQM=QM2
runmqsc QMNAME <<LABEL
commandline to be piped into rumqsc with $variable
another commandline to be piped into rumqsc with $anothervariable like
DEFINE CHANNEL($FROMQM.$TOQM) LIKE AND SO ON
LABEL
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