#How to create a cron job in the sandbox?

1 messages · Page 1 of 1 (latest)

rich bough
#

I can see the cron tool is allowed in my sandbox. However, whenever I try to create a scheduled task to execute openclaw cron, it reports the following error:
{
"status": "error",
"tool": "exec",
"error": "/bin/sh: 1: openclaw: not found\n\nCommand not found"
}

silent ploverBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

rich bough
#

How to create a cron in the sandbox?

#

How to create a cron job in the sandbox?

wide garden
rich bough
spring olive
#

right. But when cron runs, the environment is different than when you run it. Get the full path to openclaw by issuing ‘which openclaw’ and then use that in your cron job.