fix bugs
This commit is contained in:
parent
e64dc5264a
commit
aac945fa6f
@ -11,7 +11,7 @@ do
|
|||||||
f= "./log-"${cur_dateTime}".txt"
|
f= "./log-"${cur_dateTime}".txt"
|
||||||
#mv log.txt $f
|
#mv log.txt $f
|
||||||
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
|
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
|
||||||
nohup python3 -u ./server.py >>$f 2>&1 &
|
nohup python3 -u ./server.py >>${f} 2>&1 &
|
||||||
else
|
else
|
||||||
#echo ${cur_dateTime}" ---- ./server.py program is running"
|
#echo ${cur_dateTime}" ---- ./server.py program is running"
|
||||||
fi
|
fi
|
||||||
|
@ -16,10 +16,10 @@ echo "Now run new service."
|
|||||||
cur_dateTime=$(date +%Y-%m-%d_%H-%M)
|
cur_dateTime=$(date +%Y-%m-%d_%H-%M)
|
||||||
#cur_dateTime=$(date +%Y-%m-%d_%H-%m-%s)
|
#cur_dateTime=$(date +%Y-%m-%d_%H-%m-%s)
|
||||||
echo ${cur_dateTime}
|
echo ${cur_dateTime}
|
||||||
|
cd /root/tt/tt-tcp
|
||||||
#mv log.txt "./log-"${cur_dateTime}".txt"
|
#mv log.txt "./log-"${cur_dateTime}".txt"
|
||||||
f="./log-"${cur_dateTime}".txt"
|
f="./log-"${cur_dateTime}".txt"
|
||||||
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
|
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
|
||||||
nohup python3 -u ./server.py >>$f 2>&1 &
|
nohup python3 -u ./server.py >>${f} 2>&1 &
|
||||||
nohup ./restart.sh &
|
nohup ./restart.sh &
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
Loading…
Reference in New Issue
Block a user