52 lines
994 B
Markdown
Raw Permalink Normal View History

# ④ 启动自动拆书流水线·癫都癫
## 运行步骤
### 第一步:先测试一下能不能跑
```bash
cd ~/chenxing-aircraft && python3 tools/auto_dishu.py --book 癫都癫癫点好啊 --end_chapter 3
```
看到输出信息就说明可以正常运行。按 `Ctrl+C` 停止。
---
### 第二步:后台运行完整流水线
```bash
cd ~/chenxing-aircraft && mkdir -p output && nohup python3 tools/auto_dishu.py --book 癫都癫癫点好啊 --end_chapter 639 > output/dian_log.txt 2>&1 &
```
运行后会显示进程ID然后可以关掉终端去睡觉了 🌙
---
### 查看进度
```bash
tail -f ~/chenxing-aircraft/output/dian_log.txt
```
`Ctrl+C` 退出查看(不会停止运行)
---
### 查看拆书结果
```bash
ls ~/chenxing-aircraft/output/癫都癫癫点好啊/
```
---
### 停止运行(如果需要)
```bash
pkill -f auto_dishu.py
```
---
> 💡 书名参数去掉了引号和标点,直接用 `癫都癫癫点好啊` 避免乱码问题
>