#!/bin/sh # # Parameter: # $1: cf-agent binary NUM_HOST_GROUPS=10 # OPTS="-D_nenux_deubg -l" OPTS= if [ $# -ne 1 ] ; then echo "ERR: Syntax error" exit 1 fi CFAGENT=$1 for (( i=0; i < $((NUM_HOST_GROUPS)); i++ )) do $CFAGENT -I -DHOSTGROUP -DHOST_"$i" -bdo_test $OPTS > /tmp/cfe_host_"$i".log 2>&1 & done exit 0