Authored by Rong

add by shell

... ... @@ -13,6 +13,16 @@ if [[ ! $3 ]];then
exit 1
fi
HOST=""
if [[ $4 ]];then
HOST=$4
fi
HOST_NAME=$(hostname)
IP=$(/sbin/ip addr show | grep -e eth -e p4p | grep inet | awk '{print $2}' | awk -F '/' '{print $1}')
HOST=$(echo $HOST | sed 's/,/\\n/g')
HOST="127.0.0.1 localhost\n::1 localhost\n${IP} ${HOST_NAME}\n${HOST}"
echo -e $HOST > /etc/hosts
basepath=$(cd `dirname $0`; pwd)
LOG_PATH=/Data/logs/jmeter/gor.log
... ...