How to: File locking with perl

From: Brian Sherwood <sherwood_at_esu.edu>
Date: Mon, 3 Feb 1997 22:55:33 -0500 (EST)

Hello.
        I am trying to put an exclusive lock on a file in perl, but I
can't seem to figure it out. I have tried flock and fcntl, but can't seem
to get either to lock the file. Does anybody have an example of some file
locking code in perl they would care to share?

Thanks in advance.

Brian


-------------------------------------------------------
Brian Sherwood E-mail: sherwood_at_esu.edu
Network Administrator Phone: 717-422-3299
East Stroudsburg University
East Stroudsburg PA 18301
Received on Tue Feb 04 1997 - 05:07:49 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT