by user5994461 · 6y ago · 0 comments
Why would you ask questions which you know are impossible? That's setting up the candidate to fail.
0 * * * * foo()
0 * * * * sleep 30; foo()
It's not the prettiest but is a reasonable imitation of a 30 second cron.I've got guys that just google it, others that do a script and sleep within the script, and the guy that suggested the while. All of them are "right" answers for me... I don't really care about how they do it, but the process perform while doing it.
Fact is, during the life of a DevOps, they will need to solve things that they don't know how to, so they'll need to be able to at least Google-fu themselves out of the problem.