From c6518919c2d66dedc1a2534c44b1d0ca3f7e049b Mon Sep 17 00:00:00 2001 From: Luke Bonanomi Date: Mon, 8 Apr 2019 13:07:06 -0700 Subject: [PATCH] Simple bash filewatching with MAIL variables It's less-intrusive than puts/printf and has no dependencies, handy for Solaris users like myself. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 44cc199..ec83c13 100644 --- a/README.md +++ b/README.md @@ -1256,6 +1256,12 @@ for ((i=5; i<=10; ++i)) ; do printf '%02d\n' $i ; done # alternative: seq -w 5 10 ``` +###### Simple Bash Filewatching + +```bash +unset MAIL; export MAILCHECK=1; export MAILPATH='$FILE_TO_WATCH?$MESSAGE' +``` + ___ ##### Tool: [mount](https://en.wikipedia.org/wiki/Mount_(Unix))