From c0571d778cdb664e6507bfc6a409a86138e9b96c Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 16 Apr 2026 09:11:25 +0800 Subject: [PATCH] =?UTF-8?q?TOOLS=E6=A0=87=E5=87=86=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openclaw/Agents/TOOLS标准模板.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/openclaw/Agents/TOOLS标准模板.md b/openclaw/Agents/TOOLS标准模板.md index 8ebdf743..a4a46d0b 100644 --- a/openclaw/Agents/TOOLS标准模板.md +++ b/openclaw/Agents/TOOLS标准模板.md @@ -1036,3 +1036,25 @@ cat video.mp4 | ssh nas "cat > /volume2/knowledgebase/video.mp4" - 大文件通过 SSH pipe 传输时可能有连接问题 - 视频默认保存到执行命令的当前目录 - 临时文件建议放在 `~/.openclaw/temp//attachments/` 目录 + + +## 24. OpenClaw Cron Job 创建规范 + +### 标准模板 + +```bash +openclaw cron add \ +  --agent \ +  --name "" \ +  --every \        # 如 30m, 1h, 4h +  --announce \ +  --channel telegram \ +  --to "5038825565" \         # ⚠️ 必须指定,否则投递失败 +  --description "<描述>" \ +  --message "<执行指令>" +``` + + ### ⚠️ 关键规则 +- `--announce --channel telegram` 必须同时指定 `--to "5038825565"` +- 不带 `--to` 时 Telegram 投递会静默失败(无报错),导致 cron 看起来正常但用户收不到通知 +- 禁止使用 launchd / crontab / systemd 管理定时任务,必须用 OpenClaw cron \ No newline at end of file