#!/bin/csh # # boomboat - written by Kevin P. Inscoe (kevin at inscoe dot org) # # excutes a tail -f on logfiles specified in the LOGTAB file and pipes the # output to logger which get's them (by default) into the user.log for processing # by Swatch on the central syslog host. # # Variables set LOGTAB=/usr/local/admin/etc/boomboattab foreach logfile (`/bin/cat $LOGTAB`) set fn=`basename $logfile` printf "$fn\n" echo $logfile # First kill the existing process if it exists... echo " Killing..." pkill -f $fn echo " Starting..." (nohup tail -f $logfile | logger -t $fn) & end