![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Semaphore puzzleby Corion (Patriarch) |
on Feb 23, 2021 at 09:12 UTC ( #11128683=note: print w/replies, xml ) | Need Help?? |
Maybe I'm misunderstanding the problem. Why don't you lock one of the files or the database table you're importing into (or both)? You have a defined order in which they should be imported, so the program that gets launched to import the (defined) first file locks the file (and the table). The second program launched finds the file/table locked and just exits.
In Section
Seekers of Perl Wisdom
|
|