There are cases when I need to run a scheduled job in more complex way that Cron is able to provide. Say, to schedule a job to run every 23 or 65 minutes.
In the latter case it can be worked around by adding multiple Cron entries to run the same line. In the first case the number of lines to add becomes too much.
Three obvious solutions:
- run the process every minute; use the job's its own logic to deduce when it should actually run and keep its state somewhere (say, in a file)
- use "sleep" within script to pause for specified amount of time and keep it running using something like Supervisor
- use any utility able to run a process periodically with arbitrary periods (such as a monitoring utility) and launch the task with it
but they all are inconvenient under certain circumstances.
Is there a smarter replacement for Cron, available at least for POSIX systems, able to use arbitrary schedules?