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