Advertisement
RobsonAlexandre

Enviando email com tail -f

Jan 2nd, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. grep "[ACESSO]" --line-buffered <(tail -Fn1 /var/log/messages) | while read linha
  2. do
  3.     /usr/bin/esmtp usuario@email.com <<< "$linha"
  4. done &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement