in reply to Re^4: how many instances are running ?
in thread how many instances are running ?

The locking mechanism seems to require a file that can be locked

Yes. You lock the file that you're going to write to.

But we're obviously talking at complete cross-purposes here, so I'm going to withdraw from this discussion and let someone else help you.