trojan30 <[EMAIL PROTECTED]> writes:

> I will change a file's modificaion date every hour (using touch).  I need to
> check this file every hour to make sure a large program is running (the
> program has many modules that can stop -- not just one job to look for).  If
> the file was not modified last hour, I want to send an email out to the
> programmer.  Any suggestions on the best way to do this?

if test -n "$(find stampfile -mmin +60)"; then
  alarm
fi

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to