11-04-2014
The same reason locking your mailbox shut doesn't stop everyone else from getting mail.
9 More Discussions You Might Find Interesting
1. Solaris
Hi guys,
I want to add a new 'service' to Solaris 10. Does anyone have any documentation that tells how to do that?
I have gone through a bunch of stuff on the net that tells how to enable, disable services, find whats wrong with a service and so on. All conveniently skip mention of how to... (6 Replies)
Discussion started by: blowtorch
6 Replies
2. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
3. UNIX for Advanced & Expert Users
hi all
i am working on a monitoring script for my server... i am able to monitor all the explicit sessions ... the problem arises when some one is using editplus to modify a file in the server .. the unix server is not showing the edit plus access as a session ... how to monitor the actions... (3 Replies)
Discussion started by: sais
3 Replies
4. Filesystems, Disks and Memory
Hello Unix Admins:
Has any one in this distribution list implemented SVC (SAN Volume Contoller - A solution from IBM) in your environment? If you have, do you have any do's / don'ts? Anything which you like sharing would be really appreciated.
For example, my inputs:
I tried implementing... (1 Reply)
Discussion started by: kdossjojo
1 Replies
5. Solaris
I'm having these weird errors.
svc.configd: Fatal error: Backend copy failed: fails to read from /etc/svc/repository.db at offset 106496: Bad file number
svc.configd: Fatal error: unable to create "boot" backup of "/etc/svc/repository.db"
Mar 10 13:04:23 svc.startd:... (5 Replies)
Discussion started by: adelsin
5 Replies
6. Shell Programming and Scripting
Write a tool that will be displayed in real time, what user connects or disconnects from a system that uses this tool :))
Maybe anyone can help me? (2 Replies)
Discussion started by: titasas
2 Replies
7. Solaris
After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks.
ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface
# ifconfig eg1000g0:2 plumb
ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface
# ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies
8. Homework & Coursework Questions
Hi Programming Geeks,
I got an interesting C++ and MySQL problem to solve.
I was unable to do this as I am not much confident on MySQL DB.
Please have a go at it if possible.
Write a C/C++ program that connects to a MySQLserver and checks if
the InnoDB plug-in is installed on it. If so,... (5 Replies)
Discussion started by: vivek.goel.piet
5 Replies
9. UNIX for Advanced & Expert Users
Hi exports,
I have a T4 with 4 port internal NIC which 2 ports are active and, external one with 4 ports as well with only 2 ports active. So the total of the ports are 4 out of 8. I have created an link aggregation called gnic0 with ports net0, net1, net6 and, net7 in it. I also created a... (0 Replies)
Discussion started by: afadaghi
0 Replies
LEARN ABOUT CENTOS
exim_lock
EXIM_LOCK(8) System Manager's Manual EXIM_LOCK(8)
NAME
exim_lock - Mailbox maintenance
SYNOPSIS
exim_lock [options]mailbox-file
DESCRIPTION
The exim_lock utility locks a mailbox file using the same algorithm as Exim. For a discussion of locking issues, see section 25.2.
exim_lock can be used to prevent any modification of a mailbox by Exim or a user agent while investigating a problem. The utility requires
the name of the file as its first argument. If the locking is successful, the second argument is run as a command (using C's "system()"
function); if there is no second argument, the value of the SHELL environment variable is used; if this is unset or empty, /bin/sh is run.
When the command finishes, the mailbox is unlocked and the utility ends. The following options are available:
-fcntl Use "fcntl()" locking on the open mailbox.
-interval
This must be followed by a number, which is a number of seconds; it sets the interval to sleep between retries (default 3).
-lockfile
Create a lock file before opening the mailbox.
-mbx Lock the mailbox using MBX rules.
-q Suppress verification output.
-retries
This must be followed by a number; it sets the number of times to try to get the lock (default 10).
-timeout
This must be followed by a number, which is a number of seconds; it sets a timeout to be used with a blocking "fcntl()" lock. If it
is not set (the default), a non-blocking call is used.
-v Generate verbose output.
If none of -fcntl, -lockfile or -mbx are given, the default is to create a lock file and also use "fcntl()" locking on the mailbox,
which is the same as Exim's default. The use of -fcntl requires that the file be writable; the use of -lockfile requires that the
directory containing the file be writable. Locking by lock file does not last for ever; Exim assumes that a lock file is expired if
it is more than 30 minutes old.
The -mbx option is mutually exclusive with -fcntl. It causes a shared lock to be taken out on the open mailbox, and an exclusive
lock on the file /tmp/.n.m where n and m are the device number and inode number of the mailbox file. When the locking is released,
if an exclusive lock can be obtained for the mailbox, the file in /tmp is deleted.
The default output contains verification of the locking that takes place. The -v option causes some additional information to be
given. The -q option suppresses all output except error messages.
A command such as
exim_lock /var/spool/mail/spqr
runs an interactive shell while the file is locked, whereas
exim_lock -q /var/spool/mail/spqr <<End
<some commands>
End
runs a specific non-interactive sequence of commands while the file is locked, suppressing all verification output. A single command can
be run by a command such as
exim_lock -q /var/spool/mail/spqr "cp /var/spool/mail/spqr /some/where"
Note that if a command is supplied, it must be entirely contained within the second argument - hence the quotes.
BUGS
This manual page needs a major re-work. If somebody knows better groff than us and has more experience in writing manual pages, any patches
would be greatly appreciated.
SEE ALSO
exim(8), /usr/share/doc/exim4-base/
AUTHOR
This manual page was stitched together from spec.txt by Andreas Metzler <ametzler at downhill.at.eu.org>, for the Debian GNU/Linux system
(but may be used by others).
March 26, 2003 EXIM_LOCK(8)