[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] file-locking algorithm



I am currently designing a Perl program that lets people search through a
text-file database using an HTML form. Can anyone suggest a simple
file-locking algorithm to prevent several users on the Web from opening the
file at the same time?

Question: does the Perl command "open" die whenever a file is being used by
another acgi on the server machine?

Although I am designing and testing this Perl program on a Macintosh, I
plan to eventually put it on an Unix server. As a result, the file-locking
should also work on Unix, if possible.

Many thanks.

Philippe de Rochambeau

______________________________________________________________________________
Philippe de Rochambeau
pr1@club-internet.fr



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch