|
@@ -9,11 +9,11 @@ LOG_FILE="/root/luojunhui/logs/video_upload_to_google_log_$CURRENT_DATE.txt"
|
|
|
# 重定向整个脚本的输出到带日期的日志文件
|
|
|
exec >> "$LOG_FILE" 2>&1
|
|
|
|
|
|
-if pgrep -f "python3 run_video_upload_to_google.py" > /dev/null
|
|
|
+if pgrep -f "python3 run_video_understanding_with_google.py" > /dev/null
|
|
|
then
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - run_video_upload_to_google.py is running"
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - run_video_understanding_with_google.py is running"
|
|
|
else
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - trying to restart run_video_upload_to_google.py"
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - trying to restart run_video_understanding_with_google.py"
|
|
|
# 切换到指定目录
|
|
|
cd /root/luojunhui/LongArticlesJob
|
|
|
|
|
@@ -23,5 +23,5 @@ else
|
|
|
|
|
|
# 在后台运行 Python 脚本并重定向日志输出
|
|
|
nohup python3 run_video_understanding_with_google.py >> "${LOG_FILE}" 2>&1 &
|
|
|
- echo "$(date '+%Y-%m-%d %H:%M:%S') - successfully restarted run_video_upload_to_google.py"
|
|
|
+ echo "$(date '+%Y-%m-%d %H:%M:%S') - successfully restarted run_video_understanding_with_google.py"
|
|
|
fi
|