šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #5212

Re: File "In Use" op Mac OS X

#5212
From: Gunter Schelfhout
Date: Mon, 19 May 2003 16:38
24 lines
1679 bytes
Bart Baert wrote:

> 
> Hallo
> 
> Weet er iemand hoe ik kan controleren of een bestand in gebruik is op Mac
> OS X ?
> 
> Dit zou ook moeten werken voor "Read Only" bestanden, dus controleren of
> ik het bestand "Read/Write" kan openen werkt niet..
> 

Dit is g��n programmeervraag, maar kom.

lsof is een utility op unix/linux en bestaat ook voor Mac OS X.

vb:
mercurius:/home/gsc/test # lsof /usr/bin/mysql
COMMAND   PID USER  FD   TYPE DEVICE   SIZE  NODE NAME
mysql   29924  gsc txt    REG    3,2 388721 87046 /usr/bin/mysql


-- 
Blood, sweat & tears
Technical Details
Message-ID: <dM7ya.9528$1u5.700@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <baarih$u4d$1@gaudi2.rug.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII
X-Google-Thread: fcea4,990e594f1f39c132
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-05-19 09:38:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
From: Gunter Schelfhout <nospam@please.com>
Subject: Re: File "In Use" op Mac OS X
Newsgroups: be.comp.programming
References: <baarih$u4d$1@gaudi2.rug.ac.be>
Lines: 24
User-Agent: KNode/0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
Message-ID: <dM7ya.9528$1u5.700@afrodite.telenet-ops.be>
Date: Mon, 19 May 2003 16:38:33 GMT
NNTP-Posting-Host: 213.118.153.61
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1053362313 213.118.153.61 (Mon, 19 May 2003 18:38:33 MET DST)
NNTP-Posting-Date: Mon, 19 May 2003 18:38:33 MET DST
Organization: Telenet Internet