From 8ee25380e17610749d5fdf042b689a77547e30e6 Mon Sep 17 00:00:00 2001 From: afei A <57030625+NewHubBoy@users.noreply.github.com> Date: Thu, 19 Mar 2026 16:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index f555760..6ab040f 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,23 @@ python batch_download.py - 上传 DSM 完成后自动清理本地文件和子目录 - 错误记录到 `error_log.txt`,失败的 Ticket ID 保存到 `failed_tickets.csv` +### 守护进程 + +```shell + #启动后台下载 + nohup python3 batch_download.py > run.log 2>&1 & + echo $! > batch.pid + + #查看实时进度 + tail -f run.log + + #查看进程是否还在运行 + cat batch.pid | xargs ps -p + + #结束进程 + cat batch.pid | xargs kill +``` + ### 重试失败的 Ticket 将上一次运行生成的 `failed_tickets.csv` 移动到 `datasource/` 目录,然后重新运行: