This commit is contained in:
aozhiwei 2020-10-27 23:27:52 +08:00
parent 1fe76703b6
commit 0db53506c8
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@ then
cd $work_dir
fi
cp ../bin/${SRC_EXE_NAME} ../../../../bin/${PROJECT_NAME}
cd ${SOURCE_PATH}
echo ${COMPILE_CMD}|sh
cd $work_dir

View File

@ -2,7 +2,7 @@
source ./common.sh
pid=$(ps -ef|grep "${EXE_NAME} -n $2 -i $1"|grep -v grep|awk '{print $2}')
pid=$(ps -ef|grep "${PROJECT_NAME} -n $2 -i $1"|grep -v grep|awk '{print $2}')
echo $pid
if [[ $pid != "" ]]
@ -12,6 +12,6 @@ else
echo "pid 为空"
fi
nohup ./${EXE_NAME} -n $2 -i $1 >> ${EXE_NAME}$2_$1.out &
nohup ./${PROJECT_NAME} -n $2 -i $1 >> ${PROJECT_NAME}$2_$1.out &
echo 'success'