tail -f /var/log/mail.log |script.pl