feat: add shell script

master
hfy_ecs 2024-02-17 12:23:49 +08:00
parent 2224a5e274
commit 58836c8428
3 changed files with 7 additions and 0 deletions

3
start.sh Executable file
View File

@ -0,0 +1,3 @@
ps -ef | grep app.py | grep -v grep | awk '{print $2}' | xargs kill
nohup /home/hfy/miniconda3/envs/gptac_venv/bin/python -u app.py >> wechat_robot.log 2>&1 &

2
stop.sh Executable file
View File

@ -0,0 +1,2 @@
ps -ef | grep app.py | grep -v grep | awk '{print $2}' | xargs kill

2
tail_log.sh Executable file
View File

@ -0,0 +1,2 @@
tail -f wechat_robot.log -n 20