flock

Section: User Commands (1)
Index Return to Main Contents
 

NAME

flock - run a program with a file locked  

SYNTAX

flock file program [arg ... ]  

DESCRIPTION

flock opens file for reading, sets an exclusive lock on it, and runs program. When program exits (along with any of its children that inherit the lock), the lock disappears.

This is the simplest ``right'' way to lock files from shell scripts.  

DIAGNOSTICS

cannot open
Self-explanatory.
cannot flock
Self-explanatory.
cannot execute
Self-explanatory.
 

VERSION

flock version 1.0, dated April 20, 1990.  

SEE ALSO

flock(2)


 

Index

NAME
SYNTAX
DESCRIPTION
DIAGNOSTICS
VERSION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 11:04:02 GMT, December 12, 2024