添加cd命令切换到程序目录

This commit is contained in:
murmur 2023-04-23 18:37:20 +08:00
parent aac945fa6f
commit 380586931b

View File

@ -1,4 +1,12 @@
#! /bin/sh
###
# @Author: murmur test@test.test
# @Date: 2023-04-19 19:56:18
# @LastEditors: murmur test@test.test
# @LastEditTime: 2023-04-23 18:36:18
# @FilePath: \tt-tcp\restart.sh
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
###
while true
do
@ -10,6 +18,7 @@ do
#cur_dateTime=$(date +%Y-%m-%d_%H-%m-%s)
f= "./log-"${cur_dateTime}".txt"
#mv log.txt $f
cd /root/tt/tt-tcp
mv rxlog.txt "./rxlog-"${cur_dateTime}".txt"
nohup python3 -u ./server.py >>${f} 2>&1 &
else