in reply to Maximum # of concurrent runs
I've used LockFile::Simple for similar problems where I can only have one copy of a program running at a time. This module handles the waiting, retrying, cleaning up of stale lock files, and more.
The problem gets a bit more complicated if you want to have a maximum of N copies running at a time.
-- Eric Hammond
|
---|