bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File dtae comparison


From: Andreas Schwab
Subject: Re: File dtae comparison
Date: Thu, 16 Mar 2006 22:47:52 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

trojan30 <trojan30@comcast.net> 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, schwab@suse.de
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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]