Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdahl!craft From: craft@uts.amdahl.com (Peter Craft) Newsgroups: comp.unix.questions Subject: Re: How determine if a file is opened by another process Keywords: file open Message-ID: <56JF01yy18J=00@amdahl.uts.amdahl.com> Date: 5 Feb 91 02:06:40 GMT References: <1488@nixsin.UUCP> <1991Jan29.204403.6071@rick.doc.ca> <1969@winnie.fit.edu> Organization: Amdahl Corporation, Sunnyvale CA Lines: 22 In article <1969@winnie.fit.edu>, rrandall@zach.fit.edu (Rick Randall) writes: > In article <1991Jan29.204403.6071@rick.doc.ca> andrew@calvin.doc.ca (Andrew Patrick) writes: > >In article <1488@nixsin.UUCP> koerber.sin@nixdorf.com writes: > > > >>I want to find out, whether any process has opened a file, of which I only > >>Could anyone pls give me a hint ?. Maybe it's in a table in the kernel ? > > > >I need to know this too! > > > > ANSWER: man fuser fuser will give you the PID's which have a particular file open. Does anyone know of a similar facility which will list the files that a particular process has open. If not, does anyone have any simple suggestions on how to accomplish this task, (short of formatting the user structure..). Pete craft@uts.amdahl.com