Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!unisoft!greywolf From: greywolf@unisoft.UUCP (The Grey Wolf) Newsgroups: comp.unix.questions Subject: Re: How determine if a file is opened by another process Keywords: file open Message-ID: <3353@unisoft.UUCP> Date: 6 Feb 91 17:28:39 GMT References: <1488@nixsin.UUCP> <1991Jan29.204403.6071@rick.doc.ca> <1969@winnie.fit.edu> Reply-To: greywolf@unisoft.UUCP (The Grey Wolf) Organization: Foo Bar and Grill Lines: 29 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: > >>>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 ? > > ANSWER: man fuser > #ifdef fuser #define SYSV While all the world's not BSD, all the world isn't System V, either. Please don't make assumptions about other people's software. BSD returns with No manual entry for fuser #endif /* fuser */ > > ------------------------- > | Rick G. Randall | > | rrandall@zach.fit.edu | > ------------------------- -- thought: I ain't so damb dumn! | Your brand new kernel just dump core on you war: Invalid argument | And fsck can't find root inode 2 | Don't worry -- be happy... ...!{ucbvax,acad,uunet,amdahl,pyramid}!unisoft!greywolf