Thus said David Mason on Thu, 02 Oct 2014 09:35:50 -0400: > I want a script to run every 5 minutes and if there is any update, > email me the update log. But I don't want email every 5 minutes that > just says everything is up to date.
After thinking about it a bit more, I realized all we're doing here is checking if fossil update --dry-run reports that there are changes, right? So what about running this every 5 minutes? fossil sync >/dev/null && fossil update -n | grep '^changes:' | grep -v 'None. Already up-to-date' && { fossil update 2>&1 | mail -s 'Fossil update' m...@he.re } Thanks, Andy -- TAI64 timestamp: 400000005433869f _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users