Terminal: Is there a way to be notified of activity when tailing an error log
Terminal's Dock icon starts bouncing if a tab that isn't active prints \a:

tail -f /var/log/system.log | sed $'s/$/\a/'


Or run sudo gem install terminal-notifier and do something like this:

tail -f /var/log/system.log | while IFS= read -r l; do echo "$l"; terminal-notifier -message "$l" &gt; /dev/null; done