D
David Abdala
Guest
When I need to coordinate processes, the simplest is to use a LOCK on a record. In my case, I do an EXCLUSIVE-LOCK on a system wide config record ('Locking Record') and then check for the existence: FIND cttConfig WHERE cttConfig.Name = 'Locking' EXCLUSIVE-LOCK NO-WAIT. FILE-INFO:FILE-NAME = 'File to check' IF FILE-INFO:FULL-PATHNAME EQ ? THEN -- do it -- END. RELEASE cttConfig. You can wait for the lock, or fail, according to the logic.
Continue reading...
Continue reading...