*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> lockspool (1)              



NAME    [Toc]    [Back]

     lockspool - lock user's system mailbox

SYNOPSIS    [Toc]    [Back]

     lockspool [username]

DESCRIPTION    [Toc]    [Back]

     lockspool is useful for a  client  mail  program  to  attain
proper locking.
     lockspool  obtains  a username.lock for the calling user and
retains it until
 stdin is closed or a signal  like  SIGINT,  SIGTERM,  or
SIGHUP is received.
  Additionally, the superuser may specify the name of
a user in
     order to lock a different mailbox.

     If lockspool is able to create the lock file, ``1'' is written to stdout,
     otherwise  ``0''  is written and an error message is written
to stderr.
     lockspool will try up to 10 times to get the lock  (sleeping
for a short
     period in between tries).

     The  lockspool utility exits 0 on success, and 1 if an error

FILES    [Toc]    [Back]

     /var/mail/username.lock  user's mail lock file

SEE ALSO    [Toc]    [Back]

     mail(1), mail.local(8), sendmail(8)

HISTORY    [Toc]    [Back]

     The lockspool program appeared in OpenBSD 2.4.

OpenBSD     3.6                         August      13,      1998
[ Back ]
 Similar pages
Name OS Title
vslock FreeBSD lock/unlock user space addresses in memory
vsunlock FreeBSD lock/unlock user space addresses in memory
xbiff IRIX mailbox flag for X
xbiff Tru64 mailbox flag for X
mail.local OpenBSD store mail in a mailbox
mail.local IRIX store mail in a mailbox
mail.local FreeBSD store mail in a mailbox
deliver Tru64 Delivers mail to an IMAP mailbox
prmail HP-UX print out mail in the incoming mailbox file
cap_copy_ext IRIX copy capability from system to user space or from user to system space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service