From owner-freebsd-hackers Tue Aug 13 03:40:25 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA06166 for hackers-outgoing; Tue, 13 Aug 1996 03:40:25 -0700 (PDT) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA06146; Tue, 13 Aug 1996 03:40:20 -0700 (PDT) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.7.5/CET-v2.1) with SMTP id KAA00708; Tue, 13 Aug 1996 10:40:01 GMT Date: Tue, 13 Aug 1996 19:40:00 +0900 (JST) From: Michael Hancock To: Giuseppe Vitillaro cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: AIX/6000 fuser command In-Reply-To: <9608130932.AA08532@egeo.unipg.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Try ... fstat filename Mike On Tue, 13 Aug 1996, Giuseppe Vitillaro wrote: > > I found particulary useful im my experience the AIX > "fuser" command. > > This little AIX command let to get the PIDs of the > processes that are keeping open a file. > > If you use it for example on a syslog file like: > > fuser daemon.log > daemon.log: 3461 > > you will get the PID of the syslogd daemon. > > Two related questions: > > (1) does an equivalent command exist under FreeBSD? > > (2) in the case the answer to the first question would be "NO", > have the FreeBSD the primitives to build a tools like fuser? > > Thank in advance, Peppe. >