Commit 6bd98611 authored by yiwenshao's avatar yiwenshao

add startMultipleInstance

parent bc0fdae0
base=opnow
objDir=main #source
numOfInstance=4
command="sleep 1;echo hehe > log.log &"
rm -rf $base
#create directory
for((i=1;i<=$numOfInstance;i++));do
mkdir -p $base/ins$i
echo "copy source" $i
cp -r $objDir/* $base/ins$i
echo "copy mtl " $i
cp -r mtl $base/ins$i
done
for((i=1;i<=$numOfInstance;i++));do
cd $base/ins$i
echo "start instance " $i
eval $command
cd -
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment