"Permission Denied" error

Kenneth Brody kenbrody at spamcop.net
Tue Oct 8 09:39:44 PDT 2013


On 10/8/2013 11:51 AM, Richard Kreiss wrote:
[...]
>>>> lookup inv = invno  r=("1")   -ep
[...]
> In the sample above, the sleep is just a wait state before looping back
> to see if the record has been released.  What your program does when
> locked() is true, is your choice.   I would surmise that checking to see
> if the record is locked prior to performing your write could eliminate
> your problem.  This may very well be the source of your problem, trying
> to write to a record that is locked by another process.

With the "-p", your process will wait if any other process has it locked.

And (after adding "-w") if LOCKED() returns true, then the lookup failed, 
and there is nothing to write in the first place.

-- 
Kenneth Brody


More information about the Filepro-list mailing list