🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #5

Re: Resend: How to know if a file is opened?

#5
From: Harald.Eikrem
Date: Wed, 28 Oct 1992 12:13
47 lines
2398 bytes
! > Is it possible with a simple shell (any shell) command to know if a
! > specific file is actually opened by another process?
! 
! No.

It sure is, provided that you're on certain systems.  The following were
snipped from the announcement of "ofiles2":

: From: ehrlich@margaux.inria.fr (Robert Ehrlich)
: Newsgroups: comp.sources.unix
: Subject: v25i072: ofiles2 - a portable version of ofiles (show list of open file
: s)
: Message-ID: <1991Dec20.223459.12517@PA.dec.com>
: Date: 20 Dec 91 22:34:59 GMT
: 
: Submitted-By: ehrlich@margaux.inria.fr (Robert Ehrlich)
: Posting-Number: Volume 25, Issue 72
: Archive-Name: ofiles2
: 
: This is a heavily reworked version of ofiles. Ofiles shows identifys the
: opener of a file.  It was modified to be more portable and is known to work
: on several architectures :
: 
:         - Suns 3 and 4 under SunOs from 3.0 to 4.1.1
:         - Sony 1xxx 68k under newsOS 3.0 to 4.0
:         - Sony 3xxx RISC under newsOS 3.5 to 4.0
:         - Decstation 3100 under Ultrix 2.2 to 4.1
:         - Pyramid OSX 5.0 (with vtophys.c from OSX sources)
:         - Vax BSD4.3 and Ultrix
:         - Sequent DYNIX 3.0
:


and this is cut from ls -l output at ftp.uu.net:

usenet/comp.sources.unix/volume25:
-rw-r--r--  1 archive     23019 Dec 20  1991 ofiles2.Z
-rw-r--r--  1 archive      8926 Dec 19  1991 ofiles.pch.Z
usenet/comp.sources.unix/volume18:
-rw-r--r--  1 archive     17324 Oct 15  1989 ofiles.Z
-rw-r--r--  1 archive     17429 Oct 15  1989 ofiles.new.Z
usenet/comp.sources.unix/volume18/hat-n-coat:
-rw-r--r--  1 archive     17114 Mar 23  1989 ofiles.Z
-rw-r--r--  1 archive     17135 Mar 23  1989 ofiles.new.Z


  ~~harald E.
Technical Details
Message-ID: <1992Oct28.121315*Harald.Eikrem@delab.sintef.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!news
References: <YVES.92Oct27095321@alioth.info.uqam.ca> <1992Oct28.072345.295@prl.dec.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!news
From: Harald.Eikrem@delab.sintef.no
Subject: Re: Resend: How to know if a file is opened?
In-Reply-To: Yves Blaquiere <yves@vlsi.info.uqam.ca>'s message of 27 Oct 1992 14:53
 and Boyd Roberts <boyd@prl.dec.com>'s message of 28 Oct 1992 07:23.
To: Yves Blaquiere <yves@vlsi.info.uqam.ca>
Message-ID: <1992Oct28.121315*Harald.Eikrem@delab.sintef.no>
Sender: news@ugle.unit.no (NetNews Administrator)
Organization: SINTEF DELAB, Trondheim, Norway.
References: <YVES.92Oct27095321@alioth.info.uqam.ca> <1992Oct28.072345.295@prl.dec.com>
Date: 28 Oct 92 12:13:15
Lines: 47