This commit is contained in:
root 2023-04-23 18:32:35 +08:00
parent e64dc5264a
commit aac945fa6f
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ do
f= "./log-"${cur_dateTime}".txt"
#mv log.txt $f
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
nohup python3 -u ./server.py >>$f 2>&1 &
nohup python3 -u ./server.py >>${f} 2>&1 &
else
#echo ${cur_dateTime}" ---- ./server.py program is running"
fi

View File

@ -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-%s)
echo ${cur_dateTime}
cd /root/tt/tt-tcp
#mv log.txt "./log-"${cur_dateTime}".txt"
f="./log-"${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 &
echo "Done."