Forums

Run scheduled task every 10 hours

I am trying to schedule a task to run every 10 hours using the python anywhere api module. I have the task created and attempted to edit it with the code below.

> pa_update_scheduled_task.py $10 -o $(date -d"$(date) + 1 minute + %M") -p

However, I keep getting the error "

< --hour has to be in 0..23 >

"

What am I doing wrong? Thank you!

When I run the command date -d"$(date) + 1 minute + %M" in Bash, it doesn't return an hour -- I get an error:

date: invalid date Sun Mar 21 19:14:05 UTC 2021 + 1 minute + %M

Where did you get that command from?