Advertisement
Guest User

Untitled

a guest
Oct 25th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 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* ]] && (VAR="$(echo $line | cut -c 64- | sed -E 's/ to[ 0-9.:a-z=]*//g')" sh ~/bin/./tcpblock_handler.sh )
  5. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement