Advertisement
Guest User

tcpblock_notify.sh

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