- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var/adm/syslog/mail.x scripts ??
Operating System - HP-UX
1753792
Members
7246
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:22 AM
тАО11-05-2003 01:22 AM
/var/adm/syslog/mail.x scripts ??
How do you all go about sorting the mess in the mail log files?
I'm working on a script to count the number of e-mails in and out in say a 24 hour period, among other possibilities.
Please provide some additional ideas for me.
I'm working on a script to count the number of e-mails in and out in say a 24 hour period, among other possibilities.
Please provide some additional ideas for me.
"This ain't no burger flippin job!"
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:29 AM
тАО11-05-2003 01:29 AM
Re: /var/adm/syslog/mail.x scripts ??
We don't get much mail through our servers but you can trim them. Keep the last 500 hundered lines or so and lose the rest.
Counting e-mails in a unix mailbox is quite simple. I once looked at the source of "mail" trying to find how to determine the end of one and the beginning of the next and was surprised to find it used the "Received" field. You need an exact match on this entire field because the word "received" pops up a lot in emails :)
Counting e-mails in a unix mailbox is quite simple. I once looked at the source of "mail" trying to find how to determine the end of one and the beginning of the next and was surprised to find it used the "Received" field. You need an exact match on this entire field because the word "received" pops up a lot in emails :)
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 06:49 AM
тАО11-05-2003 06:49 AM
Re: /var/adm/syslog/mail.x scripts ??
Kris -
Would
more mail.log | grep 'Nov 5' | grep 'to=' | wc -l
serve your purpose?
Best regards,
dl
Would
more mail.log | grep 'Nov 5' | grep 'to=' | wc -l
serve your purpose?
Best regards,
dl
"I'm not dumb. I just have a command of thoroughly useless information."
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP