in reply to check which files are open to write/read by another process

flock may do what you want.

-- Ken

  • Comment on Re: check which files are open to write/read by another process

Replies are listed 'Best First'.
Re^2: check which files are open to write/read by another process
by JavaFan (Canon) on Nov 24, 2010 at 12:17 UTC
    No, it won't. It will only tell you if a specific file is locked. And only if you have permission to open said file.
Re^2: check which files are open to write/read by another process
by avanta (Beadle) on Nov 24, 2010 at 03:48 UTC

    Thanks Ken, but here I forgot to mention another issue. If i apply "flock" I need to apply a shared lock in "script1.pl" and in my case its unfavourable to make any changes in that script. I can change only "script2.pl"
    Thanks
    AvantA