You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
482 B
26 lines
482 B
#!/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
|
|
|