need help on shell script

2004-06-17 Thread klr
Hi list, I read http://www.linuxgazette.com/node/view/9074 and tried to adopt this script to my ipfw firewall: #!/bin/sh tail -f /var/log/security | \ awk ' $0 ~ /ICMP/ { system(cat /root/sounds/icmp.wav /dev/dsp ); } $0 ~ /TCP/ { system(cat /root/sounds/tcp.wav /dev/dsp ); } $0 ~ /UDP/ {

Re: need help on shell script

2004-06-17 Thread Adam Smith
On Thu, Jun 17, 2004 at 08:15:23PM -, [EMAIL PROTECTED] said: Hi list, I read http://www.linuxgazette.com/node/view/9074 and tried to adopt this script to my ipfw firewall: #!/bin/sh tail -f /var/log/security | \ awk ' $0 ~ /ICMP/ { system(cat /root/sounds/icmp.wav /dev/dsp );