Files
sproutclaw-cron/_template-powershell/README.md
shumengya c10cacd5c6 feat: 多语言任务、WebUI 增强与 Agent MCP 集成
重构 lib 为扁平模块并支持 Windows schtasks;新增 JS/Bash/PowerShell 模板、WebUI 调度编辑,以及 Cursor Skill 与 MCP 工具供 Agent 管理定时任务。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 21:45:25 +08:00

691 B
Raw Blame History

PowerShell 定时任务模板

PowerShell hello world 示例。业务逻辑写在 run.ps1disable / 锁 / 日志由 cronctl 负责。

依赖

  • Python 3cronctl
  • PowerShellpwsh 或 Windows 自带 powershell

新建任务

TASK_ID="smallmengya-my-ps-task"
CRON_ROOT="/shumengya/project/agent/sproutclaw-cron"
cp -a "$CRON_ROOT/_template-powershell" "$CRON_ROOT/$TASK_ID"
sed -i "s/_template-powershell/$TASK_ID/g" "$CRON_ROOT/$TASK_ID/schedule.cron"

Windows 上可直接:

python D:\SmyProjects\AI\sproutclaw-cron\cronctl.py run _template-powershell

其他语言模板

_template-javascript/README.md 中的对照表。