NO idea why you want this.
Create a shell script:
- Read a file
- check the number stored in it
- execute whatever if the
counter % 97 == 0
or increment counter by 1
- on execution you might want to reset your number to 0 as well
- cron job that executes every 15 minutes and calls the script
If your server ever goes down you get a shift in your execution by the downtime occurred.
Have a read here: https://unix.stackexchange.com/a/10650 as well, they detail small Perl scripts with while true __something__ sleep
and the watch
approach as well as other methods.
@Edit as response to EdHeals comment:
This approach will have an additional sliding time due to 97 script executions a day - script execution time is quite fast (opening file, inspecting number, increment/null it + save file should be well below 1s) - still, its 97*x a day sliding time.
Cron executions may also slide, it only guarantee is that your job will start no sooner than the specified time.