On 1/3/99 1:35 PM, Bart Lateur (bart.lateur@skynet.be) wrote: >>flock() does not work with MacPerl. One method that can work is with a >>separate lock file: create a file called "file.lock" and have your other >>programs fail while "file.lock" exists. That approach is flawed in some >>ways (if your program dies, then everything is locked out until you fix it >>manually or something), but it is an alternative. >Then try opening the file for output. ... >I'm not sure what good it is. After all, you can only run one MacPerl >script at a time. Or do you plan to simultaniously open this file using >another program as well? I'm developing the script on a Mac running QuidProQuo and MacPerl. However, the ultimate destination is a website on a Unix machine. I'd like to find a locking scheme which is portable between the two OS's. I like Chris's idea of writing a temporary file to indicate that the database is busy, even if it suffers the problem of having to manually delete the temp file when something goes wrong. I was thinking about having the script email me when there's a contention problem. So if I suddenly get loads of these emails, I'll know that script crashed, and I need to go delete the temp file. Regards, Matt Henderson | matt@exponet.net | www.exponet.net . . E x p o n e t M e d i a T e c h n o l o g i e s G m b H Full-Service Web Development & Engineering Services Provider ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch