Copyright (C) 2000-2012 |
Manpages DOTLOCKFILESection: Cistron Utilities (1)Updated: 05 June 1999 Index Return to Main Contents NAMEdotlockfile - Utility to manage lockfilesSYNOPSIS/usr/bin/dotlockfile [-p] [-c] [-u] [-m] [-l|-u] [-r retries] [lockfile]DESCRIPTIONDotlockfile is a command line utility to safely create, test and remove lockfiles. Lockfiles are created in an NFS-safe way. Dotlockfile can lock and unlock mailboxes even if the mailspool directory is only writable by group mail.The name dotlockfile comes from the way mailboxes are locked for updates on a lot of UNIX systems. A lockfile is created with the same filename as the mailbox but with the string ".lock" appended. The names dotlock and lockfile were already taken - hence the name dotlockfile :). OPTIONS
RETURN VALUEZero on success, and non-zero on failure. For the -c option, sucess means that a valid lockfile is already present. When locking (the default, or the -l option) dotlockfile returns the same values as the library function lockfile_create(3). NOTESThe lockfile is created exactly as named on the command line. The extension .lock is not automatically added. This utility is a lot like the lockfile(1) utility included with procmail, and the mutt_dotlock(1) utility included with mutt. However the command-line arguments differ, and so does the return status. It is believed that dotlockfile is the most flexible implementation, since it automatically detects when it needs to use priviliges to lock a mailbox, and does it safely. BUGSNone known. SEE ALSOlockfile_create(3), maillock(3)AUTHORMiquel van Smoorenburg, miquels@cistron.nl
IndexThis document was created by man2html, using the manual pages. Time: 04:11:22 GMT, April 27, 2024 |