原帖由 zdho 于 2008-4-2 18:33 发表
#!/bin/sh
ping -c 4 192.168.1.12
#if it is ok , we let snort run !!!
if [ $? -eq 0 ];then
snort -c /etc/snort/snort.conf -i eth0:1 -D
else
#pinging loop
while [ $? -eq 1 ];do
sleep 5
...
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |