prikaz date-prosim o pomoc otazka na postfix

Jan Stary hans at stare.cz
Thu Aug 9 16:18:19 CEST 2007


On Aug 09 10:24:18, Jaroslav Votruba wrote:
> MYDATE=$(date '+%b %e')
> MYMONTH=$(date '+%b')
> DATE=$(date +%d-%m-%Y)
> 
> echo " "
> 
> # denni vypis
> ZADEN=$(egrep ${MYDATE} /var/log/maillog | egrep blocked | wc -l)
> echo "Odmitnutych mailu za den ${DATE} je ${ZADEN}"
> 
> # mesicni vypis
> (cat  /var/log/maillog ; bzcat /var/log/maillog.[1-6].bz2) > /tmp/aa
> ZAMESIC=$(egrep ${MYMONTH} /tmp/aa  | egrep blocked | wc -l)
> echo "Odmitnutych mailu za mesic ${MYMONTH} je ${ZAMESIC}"
> 
> [...]

/usr/ports/mail/pflogstats
/usr/ports/mail/pflogsumm

	H.




More information about the Users-l mailing list