Le Vendredi 16 Février 2007 23:35, [EMAIL PROTECTED] a écrit : > I have been looking for some kind of freebsd software that will > monitor specific directories and then email notify an email address > when new files have been added. > > I have searched the ports tree with no success. If anyone has an idea > of a solution and/or a combanation of ports that will achieve this > task, i would appreciate it very much.
Why not a simple shell script run with cron? Hint: DIR=/path/to/target OLD_FILES=/var/filescheck/number NEW_FILES=$(ls -al $DIR | grep ^- | wc -l) if [ $NEW_FILES gt $OLD_FILES ];then mail -s "new files found in $DIR" [EMAIL PROTECTED] < /dev/null fi echo $NEW_FILES > $OLD_FILES PM _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"