Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > file locking module

Reply
Thread Tools

file locking module

 
 
ofer@netapt.com
Guest
Posts: n/a
 
      02-01-2005
I'm writing a script that requires locking a file before writing to it,

and I decided to check CPAN to see if there are any goodies to take
care
of this for me. A search for 'flock' yielded:

module ( dist updated )
-------------------------------------------------------------
IO::File::flock ( IO-File-flock-0.10 26 Apr 2004 )
IO::File::flock ( IO-File-Lockable-0.31 16 Jul 2004 )
IO::LockedFile::Flock ( IO-LockedFile-0.23 20 Feb 2003 )
File::Flock ( File-Flock-104.111901 19 Nov 2004 )


Anyone have any experience with any of the above, and want to recommend
one? Incidentally, this is why I think a CPAN wiki would be neat.

 
Reply With Quote
 
 
 
 
D. Marxsen
Guest
Posts: n/a
 
      02-01-2005
<(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed) oups.com...
> module ( dist updated )
> -------------------------------------------------------------
> IO::File::flock ( IO-File-flock-0.10 26 Apr 2004 )
> IO::File::flock ( IO-File-Lockable-0.31 16 Jul 2004 )
> IO::LockedFile::Flock ( IO-LockedFile-0.23 20 Feb 2003 )
> File::Flock ( File-Flock-104.111901 19 Nov 2004 )
>
>
> Anyone have any experience with any of the above, and want to recommend
> one? Incidentally, this is why I think a CPAN wiki would be neat.


Hi,

I don't use any of them (and use an own method for locking) but just a hint:
Get the book "Perl Cookbook" (or similar, I know the German title only) from
O'Reilly. There is a very good section in it concerning various methods of
file locking.

Cheers,
Detlef.

--
D. Marxsen, TD&DS GmbH
http://www.velocityreviews.com/forums/(E-Mail Removed) (replace z with h, spam protection)


 
Reply With Quote
 
 
 
 
ofer@netapt.com
Guest
Posts: n/a
 
      02-01-2005
I do have the Perl Cookbook (absolutely invaluable), and I'm familiar
with the flock function and fcntl constants, but like all good perl
programmers, I am lazy, so I'm now looking for a module that will
handle the dirty details for me and present me with an elegant syntax.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking locking resolution Frontpage raiderhawk General Computer Support 0 01-08-2008 01:42 AM
increase in cpu usage on locking and locking the system sowmya.rangineni@gmail.com Computer Support 0 06-15-2007 12:06 PM
Application locking to support optimisitc locking ? Timasmith Java 4 11-01-2006 12:42 AM
advisory locking using Storable module badarisj@gmail.com Perl Misc 1 04-12-2006 09:45 PM
Confused about locking a file via file.flock(File::LOCK_EX) Ludwigi Beethoven Ruby 5 07-26-2003 03:26 PM



Advertisments