[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] OT: Perl Question
- Subject: [ale] OT: Perl Question
- From: fletch at phydeaux.org (Mike Fletcher)
- Date: 03 Nov 1999 21:21:13 -0500
>>>>> "Robert" == Robert L Harris <nomad at rnd-consulting.com> writes:
Robert> Is there a form of stat() that will tell me if something
Robert> has a file open for writing in perl? I'm poking around
Robert> perldoc, etc but nothing is just jumping out at me.
There's nothing in perl (or in POSIX for that matter) that
will tell you if another process has a file open. Any things which
do so (fuser, lsof) do so in a platform specific manner (although if
you've got one of the others handy they might work).
At any rate, the other suggestions of sending a 0 byte lock
file sound much better.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U