http://docs.komagata.org/4009http://www.sssg.org/blogs/naoya/archives/1251ちょっと自信がないが、logrotateのprerotateの中に書けばcronで行う必要はないと思う。 /var/log/mysqld.log /var/log/mysqld-slow.log { # create 600 mysql mysql notifempty daily rotate 3 missingok compress sharedscripts prerotate /usr/bin/mysqldumpslow -s t /var/log/mysqld-slow.log 2>/dev/null | \ mail -s "slowlog" foo@example.com endscript postrotate # just i