2 # fixscript will replace this line with code to load innshellvars
4 # $Id: sendxbatches.in 2674 1999-11-15 06:28:29Z rra $
5 # By petri@ibr.cs.tu-bs.de with mods by libove@jerry.alf.dec.com
7 # Script to send xbatches for a site, wrapped around innxbatch
8 # Invocation: sendxbatches <sitename> <hostname> <xbatch file name> ...
10 ## TODO: - we should check the amount of queued batches for the site,
11 ## to prevent disk overflow due to unreachable sites.
15 echo "usage: $0 <sitename> <hostname> <xbatch file name>"
19 LOCK=${LOCKS}/LOCK.sendxbatches
20 shlock -p $$ -f ${LOCK}
23 echo Locked by `cat ${LOCK}`
27 trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
32 ctlinnd -s flush "$site"
35 echo "ctlinnd flush $site failed."
39 $NEWSBIN/innxbatch -D -v "$host" $*