File::Flock man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

File::Flock(3)	      User Contributed Perl Documentation	File::Flock(3)

NAME
	File::Flock - file locking with flock

SYNOPSIS
	use File::Flock;

	lock($filename);

	lock($filename, 'shared');

	lock($filename, undef, 'nonblocking');

	lock($filename, 'shared', 'nonblocking');

	unlock($filename);

	my $lock = new File::Flock '/somefile';

	lock_rename($oldfilename, $newfilename)

DESCRIPTION
       Lock files using the flock() call.  If the file to be locked does not
       exist, then the file is created.	 If the file was created then it will
       be removed when it is unlocked assuming it's still an empty file.

       Locks can be created by new'ing a File::Flock object.  Such locks are
       automatically removed when the object goes out of scope.	 The unlock()
       method may also be used.

       lock_rename() is used to tell File::Flock when a file has been renamed
       (and thus the internal locking data that is stored based on the
       filename should be moved to a new name).	 unlock() the new name rather
       than the original name.

LICENSE
       File::Flock may be used/modified/distibuted on the same terms as perl
       itself.

AUTHOR
       David Muir Sharnoff <muir@idiom.org>

perl v5.14.0			  2008-03-28			File::Flock(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net