添加cd命令切换到程序目录
This commit is contained in:
parent
aac945fa6f
commit
380586931b
@ -1,4 +1,12 @@
|
|||||||
#! /bin/sh
|
#! /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
|
while true
|
||||||
do
|
do
|
||||||
@ -10,6 +18,7 @@ do
|
|||||||
#cur_dateTime=$(date +%Y-%m-%d_%H-%m-%s)
|
#cur_dateTime=$(date +%Y-%m-%d_%H-%m-%s)
|
||||||
f= "./log-"${cur_dateTime}".txt"
|
f= "./log-"${cur_dateTime}".txt"
|
||||||
#mv log.txt $f
|
#mv log.txt $f
|
||||||
|
cd /root/tt/tt-tcp
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user