#!/bin/csh -f #H# TripWire Update #H# #H# This script runs tripwire --check and then tripwire --update against #H# the latest report in the reports directory. I wrote it because I got tired #H# of looking to see which filename to use on the command line. #H# #H# If you add the -l param you will just run the update without the check. if ("$1" == "-h" || "$1" == "--help") then grep "^#H#" $0 | sed -e 's/^#H# //' exit endif if ("$1" != "-l") then tripwire --check endif tripwire --update -r `ls -tr /var/lib/tripwire/report/* | tail -n1`