#!/usr/bin/env bash jar_package=`find /Users/shanpin/IdeaProjects/toktok-server/toktok-parent/toktok-$1/target -name "*.jar"` echo "jar package ${jar_package}" echo "Shanpin#!#123456" echo " 1) rsync to spu@120.79.211.173:/srv/server/toktok-server/toktok-$1" rsync --delete -avz ${jar_package} spu@120.79.211.173:/srv/server/toktok-server/toktok-$1/toktok-$1.jar echo " 4) spu@120.79.211.173 run.sh restart..." ssh -l spu 120.79.211.173 " cd /srv/server/toktok-server/toktok-$1/; /usr/bin/sh run.sh;" echo done! exit 0