On Thu, Jan 13, 2000 at 12:34:05PM -0500, Kevin Diffily wrote:
> Does anyone know of the existence of a script that will 1) monitor a
> local folder(s) on a regular basis and 2) send an email notification?
I'm using this script for a this task, run daily by cron:
#!/bin/sh
tmpfile=${HOME}/.owchange
rm -f ${tmpfile}
find DIRECTORY -name FILENAMEMASK -mtime -1 -ls > ${tmpfile}
if [ -s ${tmpfile} ]; then
cat ${tmpfile} | mail -s "CRON: blablabla was modified" MAILADDRESS
fi
rm -f ${tmpfile}
It's basically a quick hack, but as usual, I never got round to improve
on it... :-)
HTH,
Thomas
--
"Look, Ma, no obsolete quotes and plain text only!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.