我想用grep尾部日志文件,并通过邮件发送,如:
tail -f /var/log/foo.log | grep error | mail -s subject name@example.com
我怎样才能做到这一点?
email shell grep tail
email ×1
grep ×1
shell ×1
tail ×1