Re: Counting Messages (was Re: limit messages per box)1998-07-22 11:10:43On Wed, Jul 22, 1998 at 01:33:13PM -0400, Tim Vanderhoek wrote: # Time to gzip our mail... :0 ? lockfile -ml | ( gzip -c ${MAIL} > mail.gz.`ls mail.gz.* | wc -l` Ugh. What's that. Try | ( gzip -c ${MAIL} > mail.gz.`ls mail.gz.* | wc -l` \ && cp /dev/null ${MAIL} ) j=`cp /dev/null ${MAIL}` And remove this line. This handles the case where gzip fails or where you're too close to exceeding your quota to be able to handle the gzip. -- This .sig is not innovative, witty, or profund.
|
|