Hi, I have (my son has!) implemented protection against multiple instances causing havoc by creating a directory. This fails if it exists and thus in a single instruction one gets both the acquire and the test. Windows has it's mutex which solves the problem. Is there any better version for UNIX. Thanks Nigel King