2 ms·
Lock your script (against parallel run)
- rachelbythebay 14y agolockfile, from the procmail suite, is a great way to do this. It's installed all over the place... even OS X.
- tambourine_man 14y agoI didn't know lockfile was part of OS X, thanks. The atomicity hack of mkdir is beautiful though.