Path: utzoo!attcan!uunet!clyde.concordia.ca!ccu.umanitoba.ca!mills From: mills@ccu.umanitoba.ca (Gary Mills) Newsgroups: comp.unix.shell Subject: Re: Who redirects to a file? Message-ID: <1990Oct17.030214.17113@ccu.umanitoba.ca> Date: 17 Oct 90 03:02:14 GMT References: <9010161533.AA19292@decpa.pa.dec.com> Organization: University of Manitoba, Winnipeg, Canada Lines: 16 ellis@ultra.dec.com (David Ellis 16-Oct-1990 1136) writes: >Given a specific file, how can the following be done in csh: >(a) Determine whether there exists a process whose output is currently >redirected into the file. [...] >(c) As in (b), but you want to test for processes on other machines that >may be redirecting their output to your file via a NFS pointer on their >machine. In this situation, about all you can do is lock the file, with something like lockf(3). It even works across NFS mounts in SunOS 4.1.1, for example. -- -Gary Mills- -University of Manitoba- -Winnipeg-