mirror of
https://github.com/unman/shaker.git
synced 2024-12-26 15:59:31 -05:00
6 lines
255 B
Bash
6 lines
255 B
Bash
|
#!/bin/sh
|
||
|
DATE=`date -Isec`
|
||
|
cp /var/log/snort/snort.alert.fast /var/log/snort/snort.alert.fast_$DATE
|
||
|
echo "Snort starting" > /var/log/snort/snort.alert.fast
|
||
|
tail -f "/var/log/snort/snort.alert.fast" | xargs -d '\n' -L1 notify-send -u critical -t 1000 --
|