diff options
author | Carl Bordum Hansen <carl@bordum.dk> | 2020-01-26 22:36:58 +0100 |
---|---|---|
committer | Eric Curtin <ericcurtin17@gmail.com> | 2020-01-26 21:36:58 +0000 |
commit | c3cc6d5121e720d6b07c25442390cfc6a41a2889 (patch) | |
tree | de9205e3d387c84c86b5caa439bc2780ca90550d | |
parent | 501a806c9fa2cccb90ee55b7d36c00a78fac5527 (diff) | |
download | inotify-tools-c3cc6d5121e720d6b07c25442390cfc6a41a2889.zip inotify-tools-c3cc6d5121e720d6b07c25442390cfc6a41a2889.tar.gz inotify-tools-c3cc6d5121e720d6b07c25442390cfc6a41a2889.tar.bz2 |
fix example two (#100)
the loop body never really executes because the exit code is 0 on the
event
-rw-r--r-- | man/inotifywait.1.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/inotifywait.1.in b/man/inotifywait.1.in index 0a708f0..2653592 100644 --- a/man/inotifywait.1.in +++ b/man/inotifywait.1.in @@ -305,7 +305,7 @@ do something appropriate. .nf #!/bin/sh -while inotifywait -e modify /var/log/messages; do +while ! inotifywait -e modify /var/log/messages; do if tail -n1 /var/log/messages | grep httpd; then kdialog --msgbox "Apache needs love!" fi |