Prev | Current Page 655 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


10.4.4.4 -o
Omit the delivery agent names mailstats command-line switch
Ordinarily, when mailstats produces its output, it prints the human-readable names of the
delivery agents in its rightmost column:
% mailstats
Statistics from Sat Jan 1 17:30:02 2000
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
0 0 0K 246 685K 0 0 prog
... ?†‘
here
If you prefer to omit delivery agent names, you can suppress the last column with this -o
command-line switch:
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
10.4 The mailstats Program | 369
% mailstats -o
Statistics from Sat Jan 1 17:30:02 2000
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis
0 0 0K 246 685K 0 0
... ?†‘
gone
Note that this -o switchcan be combined withth e -p switch(described next) to also
suppress printing the M line in that output.
10.4.4.5 -p
Produce program-friendly output and clear statistics file mailstats command-line switch
Parsing of the mailstats program??™s output can be made more program-friendly withth e use
of the -p command-line switch:
% mailstats -p
938478602 938718475
0 0 0 247 686 0 0 prog
3 42 96 2 5 0 0 local
5 472 1710 10 22 5 0 esmtp
T 514 1806 259 713 5 0
C 514 259 5
Here, the first line contains two dates in Unix time(2) format. The first is the date/time the
file was created (or zeroed), and the second is the date/time mailstats was run.


Pages:
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
kasyno torpado out of home advertising zaproszenia ślubne plecaki