šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
3 messages
3 total messages Started by Bart Baert Mon, 19 May 2003 15:00
File "In Use" op Mac OS X
#5208
Author: Bart Baert
Date: Mon, 19 May 2003 15:00
12 lines
1090 bytes
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..

Bedankt !!

Marc
Re: File "In Use" op Mac OS X
#5212
Author: 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
Re: File "In Use" op Mac OS X
#5220
Author: Philip Paeps
Date: Tue, 20 May 2003 17:26
17 lines
1679 bytes
Bart Baert <bjbaert@news.rug.ac.be> wrote:
> Weet er iemand hoe ik kan controleren of een bestand in gebruik is op Mac OS
> X ?

Op dezelfde manier als anywhere else: locken?

> Dit zou ook moeten werken voor "Read Only" bestanden, dus controleren of ik
> het bestand "Read/Write" kan openen werkt niet..

Controleer of je een exclusive lock kunt krijgen?

 - Philip

-- 
Philip Paeps

  If it's good, they discontinue it.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads