[Mailman-Users] mmdsr -- Mailman Daily Status Reports(Bourne shellscript, updated)

Brad Knowles brad at stop.mail-abuse.org
Sun Oct 2 00:23:01 CEST 2005


At 10:29 PM -0700 2005-09-29, Mark Sapiro wrote:

>  I got tired of seeing all the '.' and '..' entries and the 'total'
>  blocks in the qfiles subdirectory listings so I changed the script as
>  follows:

	I've been thinking about this.  I think that I like seeing those 
entries, as a visual reminder that I really am seeing the complete 
list of files in that directory, and therefore that it really is 
empty.  When it comes to counting the entries in the directory 
listing, I already account for these, but I still like seeing them.

	However, I can see that others might not feel the same way.  If 
you can recommend a patch that would make your preferred behaviour 
optional, I'd incorporate that.

>  The other thing I changed is due to the fact that the logs are rotated
>  weekly via logrotate on my installation. This occurs at 04:02 on
>  Sundays and is beyond my control and caused my report for Sunday to be
>  missing the 00:00 to 04:02 time period. Even if I did control it, I
>  think the best I could do would lose a second or two.
>
>  Instead, I changed the script as follows to get all the days entries
>  from both the current and the previous log (if any).

	Hmm.  I'd like to find a way to virtualize this sort of thing. 
I'll have to give this some thought.

	But definitely a good idea.

-- 
Brad Knowles, <brad at stop.mail-abuse.org>

"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."

     -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
     Assembly to the Governor, November 11, 1755

   SAGE member since 1995.  See <http://www.sage.org/> for more info.



More information about the Mailman-Users mailing list