1 2 3 4 5
#!/bin/bash DIR=/var/lib/tripwire/report HOST=`hostname -s` LAST_REPORT=`ls -1t $DIR/$HOST-*.twr | head -n 1` tripwire --update --twrfile "$LAST_REPORT"