1 Reply Latest reply: Apr 28, 2009 1:37 AM by masijade RSS

    How to lock a file in solaris

      Hi everyone,

      Is there a way to lock a file in Solaris ?

      Any input highly appreciated.

        • 1. Re: How to lock a file in solaris
          Of course. There is even a class for it. However, be forewarned, locks only work when everything "plays nice". If one program locks it, and another program doesn't bother to attempt locking it before doing something with it, it will be able to "pull the carpet out from under" the locking process.

          If you mean "lock" in the "Windoof" sense (in that absolutely nothing can do absolutely anything with a file when something else has it locked), no.