mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-12-19 18:06:14 +00:00
Simple bash filewatching with MAIL variables
It's less-intrusive than puts/printf and has no dependencies, handy for Solaris users like myself.
This commit is contained in:
parent
72b45043e6
commit
c6518919c2
@ -1256,6 +1256,12 @@ for ((i=5; i<=10; ++i)) ; do printf '%02d\n' $i ; done
|
|||||||
# alternative: seq -w 5 10
|
# 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))
|
##### Tool: [mount](https://en.wikipedia.org/wiki/Mount_(Unix))
|
||||||
|
Loading…
Reference in New Issue
Block a user