tubietulip
MIS
For our database-saves we use flags to check if a save is already running. Lately we had some problems with saves hanging for multiple days without us noticing; we have more than 100 DB to save and monitor.
I was thinking how to check the flags date and couldn't come up with a swift solution. The only thing I came up with was :
are there better solutions ???
thx in advance ;-)
I was thinking how to check the flags date and couldn't come up with a swift solution. The only thing I came up with was :
Code:
if [ -a /path/file ]
then
check=`find /path -name file -mtime 0 | wc -l`
if [ $check -lt 1 ]
then
mailx -s 'Save running more than 24 hours' me@work
fi
fi
thx in advance ;-)