#!/bin/bash
deploy_ip=$1
run_type=$2
obj_name=$3

local_file="/data/$obj_name.jar"
ls -alh $local_file

#DEPLOY
arr=(${deploy_ip//,/ }) 
for ip in ${arr[@]}
do
    echo "deploy: "$ip
    /data/expect4dmpz_jar.sh $ip $local_file "/var/www/deploy/$obj_name.jar" $run_type
    sleep 30s
done
