#!/bin/sh # # This is a test of the "logger" and syslog configuration. # It will loop through all the possible facillities and severity levels # and send a syslog message for each one. # # Andy Welter 9/23/98 # www.the-welters.com # FACILITIES="auth daemon kern lpr mail news user syslog uucp local0" SEV="debug info notice warn err crit alert emerg" DATE=`date +"%D %T"` for F in $FACILITIES; do for S in $SEV; do echo "$F.$S ..." logger -p$F.$S "syslog test $DATE $F.$S" done done