Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions Subject: Re: How determine if a file is opened by another process Keywords: file open Message-ID: <1991Jan31.035907.3117@convex.com> Date: 31 Jan 91 03:59:07 GMT References: <1488@nixsin.UUCP> <1991Jan29.204403.6071@rick.doc.ca> <1969@winnie.fit.edu> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 13 Nntp-Posting-Host: pixel.convex.com From the keyboard of rrandall@zach.fit.edu (Rick Randall): : ANSWER: man fuser Well...... maybe. Try fstat(8) [BSD], fuser(8) [SysV], and ofiles(8) [PD]. Should these all fail to exist, pstat(8) output (with the -i and/or -f flags) can often be massaged into something informative enough to get the job done. --tom -- "Hey, did you hear Stallman has replaced /vmunix with /vmunix.el? Now he can finally have the whole O/S built-in to his editor like he always wanted!" --me (Tom Christiansen )