1
This commit is contained in:
parent
e27ca14710
commit
1f8ed08d76
@ -3,7 +3,7 @@
|
|||||||
source /etc/profile
|
source /etc/profile
|
||||||
source /root/.bash_profile
|
source /root/.bash_profile
|
||||||
|
|
||||||
pid=`ps -ef|grep 'gameserver2004 -n $1 -i $2'|grep -v grep|awk '{print $2}'`
|
pid=$(ps -ef|grep "gameserver2004 -n $2 -i $1"|grep -v grep|awk '{print $2}')
|
||||||
echo $pid
|
echo $pid
|
||||||
|
|
||||||
if [[ $pid != "" ]]
|
if [[ $pid != "" ]]
|
||||||
@ -13,4 +13,4 @@ else
|
|||||||
echo "pid 为空"
|
echo "pid 为空"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nohup ./gameserver2004 -n $1 -i $2 >> gameserver2004$2_$1.out &
|
nohup ./gameserver2004 -n $2 -i $1 >> gameserver2004$2_$1.out &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user