|
@@ -46,11 +46,11 @@ else
|
|
|
fi
|
|
|
|
|
|
# 判断自动更新文章任务
|
|
|
-if pgrep -f "python3 updatePublishMsgDaily.py" > /dev/null
|
|
|
+if pgrep -f "python3 updatePublishedMsgDaily.py" > /dev/null
|
|
|
then
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - updatePublishMsgDaily.py running"
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - updatePublishedMsgDaily.py running"
|
|
|
else
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - trying to restart updatePublishMsgDaily.py"
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - trying to restart updatePublishedMsgDaily.py"
|
|
|
# 切换到指定目录
|
|
|
cd /root/luojunhui/LongArticlesJob
|
|
|
|
|
@@ -59,8 +59,8 @@ else
|
|
|
conda activate tasks
|
|
|
|
|
|
# 在后台运行 Python 脚本并重定向日志输出
|
|
|
- nohup python3 updatePublishMsgDaily.py >> /dev/null 2>&1 &
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - successfully restart updatePublishMsgDaily.py"
|
|
|
+ nohup python3 updatePublishedMsgDaily.py >> /dev/null 2>&1 &
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - successfully restart updatePublishedMsgDaily.py"
|
|
|
fi
|
|
|
|
|
|
|