I know I can do simple arithmetic in shell scripts, like so:#!/bin/bash((sum = 1 + 2))echo sumThis will output 3 on execution. My question now is, can this kind of expressions be used in crontab? For example, see this line:03,13,23,33,43,53 * * * * ~/DoSomeStuff.shThe minutes could be specified as x+3 with x the expression */10, which can be used in crontabs. However, simply writing */10+3 or ((*/10+3)) won't work. Is there any way to do this? And what is the correct syntax?The alternative, that certainly works, is putting a sleep 3m. I'm just wondering if the arithmetic way of doing it is somehow possible.
Is it possible to put arithmetic expressions in a crontab?
shell;cron