I have a few cleanup commands to run for my datacaching scheme. I was thinking a bash
script would be an easy way to check if the full clean up job needed to be run. But the cache is very time sensitive, so the check script needs to run every second. What's the best way to do this?
Crontab only goes down to minutes, which makes sense for most applications.
Can I install a bash
script as a background service?
On second though, can I just start it with the & command and make it loop forever with a one second sleep?