Who redirects to a file?
Gary Mills
mills at ccu.umanitoba.ca
Wed Oct 17 13:02:14 AEST 1990
ellis at 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-
More information about the Comp.unix.shell
mailing list