I need to generate the cron expression based on milliseconds. For example: what will be the cron expression for 86400(milliseconds) and how to get the expression..? Please help..
Thanks...
I need to generate the cron expression based on milliseconds. For example: what will be the cron expression for 86400(milliseconds) and how to get the expression..? Please help..
Thanks...
cron
is not intended for high-accuracy timing ! Forget about seconds or even milliseconds precision here. The best you can get is minutes.
cron
CAN be and is frequently off by several seconds (due to process start-up, ...).
If you really require that kind of precision, you should build your own daemon (unless I got your question wrong).
If your intend is "just" to convert second/millisecond time to crontab expression. Then:
<second_number>
< 84600int( (<second_number> % 3600) / 60)
int( (<second_number> / 3600) )
For more have look at the crontab man page.