#!/bin/sh DUMMY=/tmp/dummy$$ while true do touch $DUMMY sleep 3 [ `find /var/log -name secure -newer $DUMMY` ] && echo "yeah" done rm $DUMMY