Crontab - how to make time range?

im puting script in crontab, script is executing every 15min, every day, every monath

but i must make time range from 0:00 - 20:00 <> 20:30 - 0:00
or if i cant make 20:30 then 0:00 - 20:00 <> 21:00- 0:00

can i make it in single line like this?

7,22,37,52 0-23 * * * test.sh  >/dev/null 2>&1

I do not get what you want. Instead of showing us your crontab entry, please explain what you want. As A general guess - you cannot do what you want in one line,

Most versions of cron/crontab support lists. Have you tried something like

7,22,37,52 0-19,21-23 * * * test.sh  >/dev/null 2>&1

thanks for advice, i will try it :slight_smile: