Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tail -1 -f /var/log/system.log | while read line
- do
- [[ "$line" == *tcpblock*block*connection* ]] && ( terminal-notifier -title tcpblock -message "$(echo $line | cut -d\ -f7- | cut -d: -f1)" 1>/dev/null)
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement