Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pdn!tscs!tct!chip From: chip@tct.com (Chip Salzenberg) Newsgroups: comp.unix.shell Subject: Re: SCCS and RCS over NFS (was: Creating a lock file in sh?) Message-ID: <28124072.1774@tct.com> Date: 22 Apr 91 01:46:26 GMT References: <784@necssd.NEC.COM> <1991Apr19.201517.3679@odin.corp.sgi.com> <1991Apr20.020506.8656@twinsun.com> Organization: Teltronics/TCT, Sarasota, FL Lines: 19 According to eggert@twinsun.com (Paul Eggert): >For example (Bourne shell): > > if (umask 777; echo >lock) > then > Perform whatever operation required locking. > rm -f lock > else > Report that you could not obtain the lock. > fi Unfortunately, this method is still prone to spurious failure when an imperfect network loses the ACK from the initial creation attempt. "NFS: We Bring Net Errors To Life." -- Brand X Industries Custodial, Refurbishing and Containment Service: When You Never, Ever Want To See It Again [tm] Chip Salzenberg ,