flock may do what you want.
-- Ken
In reply to Re: check which files are open to write/read by another process by kcott in thread check which files are open to write/read by another process by avanta