Prev | Current Page 752 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

All rights reserved.
11.6 Printing the Queue | 425
Prior to V8.8 sendmail, th eM line error messages were truncated to 60 characters.
Beginning with V8.8, verbose mode causes the full, nontruncated text of the M line
error to be printed.
11.6.2 Print the Number of Messages in the Queue
Beginning withV8.12 sendmail, th e-bP command-line switchcan be used to print
the number of messages in the queue or queues. This command-line switch relies on
shared memory to gather its information, so it works only if sendmail is compiled
with shared memory support. The SM_CONF_SHM compile-time macro determines
whether shared memory support was included (see ?§3.4.55 on page 142). If
shared memory support is not included, use of this command-line switch will cause
the following error to be printed:
Data unavailable without shared memory support
If shared memory support is compiled in, but there is a problem with it (possibly at
the system level), the following error will print:
Data unavailable: shared memory not updated
Note that you will also get this error if the queue has not been processed at least once
to initialize the data.
In addition to enabling shared memory using the SM_CONF_SHM m4 Build macro,
you must also define a key to be used with that shared memory with the
SharedMemoryKey option. To set this option in your configuration file, you could add
a line such as the following to your mc configuration file:
define(`confSHARED_MEMORY_KEY',`13521')
If all goes well, the -bP command-line switch will produce output such as this:
/var/spool/mqueues/q.


Pages:
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
wierszyki Kapitalne mieszkania do wynajęcia Warszawa pozycjonowanie katalog stron Ztr alpine