I needed to create a script that runs a regression test. I intended to schedule this with a cron job. However, I found that sometimes, my cron jobs would collide with each other. So, I looked to Linux’ lockfile command to create a file lock as a semaphore. Here’s the incantation: # if we’re already [...]
Blogroll
Meta