Before executing a job in cron, I need to pause randomly. I found a construction like this:
0 10 * * * sleep $(( RANDOM % 30 )); wifi down
But it doesn't work for me. In the logs, I see that there was no pause:
Sun Sep 13 10:00:00 2020 cron.info crond: USER root pid 11940 cmd sleep $(( RANDOM % 30 )); wifi down ... Sun Sep 13 10:00:01 2020 daemon.notice hostapd: wlan0: AP-DISABLED
How can i do this?