Path: utzoo!attcan!uunet!mcvax!unido!laura!exunido!bause From: bause@exunido.uucp (Falko Bause) Newsgroups: comp.unix.questions Subject: mutual exclusion write access Message-ID: <1505@laura.UUCP> Date: 28 Jul 89 12:59:30 GMT References: <432@mccc.UUCP> <9700009@osiris.cso.uiuc.edu> <2277@auspex.auspex.com> <470@glyph.UUCP> <5275@ficc.uu.net> Sender: news@laura.UUCP Reply-To: bause@exunido.UUCP (Falko Bause) Organization: University of Dortmund, W-Germany Lines: 26 I want to allow only mutually exclusive write-accesses to a certain file. I've searched through the manual pages and have only found commands like lockf. But these commands only allow to establish a mutual exlusive access for sub-processes of some process. Let's explain, what I want, through an example: There is a file (e.g.) named text. I want that the following commands getting only exclusive write access: du > text ls -R > text myprog > text etc. I think that this a basic problem and therefore UNIX should have some buildins. E.g. VAX/VMS and Apollo/Aegis support setting some file attributes and mutual exclusion is performed by the operating system. But chmod, I think, doesn't has this possibility. Is there an easy way to perform mutual exclusion? Thanks in advance Falko