#How to create a cron job in the sandbox?
1 messages · Page 1 of 1 (latest)
This actually looks like openclaw isn’t in your PATH inside the cron env. Cron runs a minimal shell, so it won’t pick global binaries.
Try using the full path (e.g. /usr/local/bin/openclaw) or source your env before running it.
Update me if that works out
This is an error in my sandbox environment. My biggest question now is whether the sandbox can actually create cron jobs, and if it can, how to configure them; when I run 'openclaw sandbox explain', I see that my cron tool is allowed.
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.