#!/bin/bash set -x system=`uname -s` echo ${system} ExcludeSvr=( "gztest2" "gztest3" "yuan-vm" ) KILL_ALL=0 for i in ${ExcludeSvr[@]} ; do if [ "$i" == "$HOSTNAME" ] ; then KILL_ALL=1 break fi done # if [[ $system == CYGWIN_NT-10* ]]; then taskkill /F /IM SogLoader.exe # elif [ "Darwin" == ${system} ] || [ $KILL_ALL == 1 ]; then # killall SogLoader # else # echo "current sys ${system} can not kill all..." # fi if [ $# = 1 ] ; then rm ../log/* fi