TOOLS标准模板更新
This commit is contained in:
@@ -1036,3 +1036,25 @@ cat video.mp4 | ssh nas "cat > /volume2/knowledgebase/video.mp4"
|
|||||||
- 大文件通过 SSH pipe 传输时可能有连接问题
|
- 大文件通过 SSH pipe 传输时可能有连接问题
|
||||||
- 视频默认保存到执行命令的当前目录
|
- 视频默认保存到执行命令的当前目录
|
||||||
- 临时文件建议放在 `~/.openclaw/temp/<agentId>/attachments/` 目录
|
- 临时文件建议放在 `~/.openclaw/temp/<agentId>/attachments/` 目录
|
||||||
|
|
||||||
|
|
||||||
|
## 24. OpenClaw Cron Job 创建规范
|
||||||
|
|
||||||
|
### 标准模板
|
||||||
|
|
||||||
|
```bash
|
||||||
|
openclaw cron add \
|
||||||
|
--agent <agentId> \
|
||||||
|
--name "<job-name>" \
|
||||||
|
--every <duration> \ # 如 30m, 1h, 4h
|
||||||
|
--announce \
|
||||||
|
--channel telegram \
|
||||||
|
--to "5038825565" \ # ⚠️ 必须指定,否则投递失败
|
||||||
|
--description "<描述>" \
|
||||||
|
--message "<执行指令>"
|
||||||
|
```
|
||||||
|
|
||||||
|
### ⚠️ 关键规则
|
||||||
|
- `--announce --channel telegram` 必须同时指定 `--to "5038825565"`
|
||||||
|
- 不带 `--to` 时 Telegram 投递会静默失败(无报错),导致 cron 看起来正常但用户收不到通知
|
||||||
|
- 禁止使用 launchd / crontab / systemd 管理定时任务,必须用 OpenClaw cron
|
||||||
Reference in New Issue
Block a user