aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-05-26 12:42:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-05-26 12:42:16 +1200
commitc956f1a3648a89979f7815426ca1370f8939caf6 (patch)
tree1a941187cc079ac8f06d93c547eb1cac44d2cde7
parentClarify a little what it does (diff)
downloadnwatch-c956f1a3648a89979f7815426ca1370f8939caf6.tar.gz
nwatch-c956f1a3648a89979f7815426ca1370f8939caf6.zip
Correct a few documentation paths
-rw-r--r--README.markdown4
-rwxr-xr-xbin/nwatch3
-rw-r--r--share/man/man1/nwatch.14
3 files changed, 6 insertions, 5 deletions
diff --git a/README.markdown b/README.markdown
index 1ec172f..b9d4dce 100644
--- a/README.markdown
+++ b/README.markdown
@@ -11,12 +11,12 @@ Usage:
Example with root privileges:
- # nwatch /etc/nwatch.mynet /var/cachedir/nwatch/mynet
+ # nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
Prints the results of an `ndiff(1)` call against the last known scan to stdout;
intended to be called from `cron(8)`:
- 0 0 * * 0 nwatch /etc/nwatch.mynet /var/log/nwatch/mynet
+ 0 0 * * 0 nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
I recommend you use [croncrypt](https://github.com/tejr/croncrypt), so you
don't leak your network information in plain text in your email.
diff --git a/bin/nwatch b/bin/nwatch
index 5a6bb23..138b86d 100755
--- a/bin/nwatch
+++ b/bin/nwatch
@@ -7,10 +7,11 @@
# Usage:
# $ nwatch HOSTLIST CACHEDIR
# Example with root privileges:
-# # nwatch /etc/nwatch.mynet /var/cachedir/nwatch/mynet
+# # nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
#
# Prints the results of an ndiff(1) call against the last known scan to stdout;
# intended to be called from cron(8):
+# 0 0 * * 0 nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
#
# I recommend you use croncrypt, so you don't leak your network information in
# plain text in your email: <https://github.com/tejr/croncrypt>
diff --git a/share/man/man1/nwatch.1 b/share/man/man1/nwatch.1
index 90b60f8..4481b44 100644
--- a/share/man/man1/nwatch.1
+++ b/share/man/man1/nwatch.1
@@ -9,7 +9,7 @@
.SH SYNOPSIS
.B nwatch
/etc/nwatch.mynet
-/var/cachedir/nwatch/mynet
+/var/cache/nwatch/mynet
.SH DESCRIPTION
.B nwatch
reads a list of hosts from
@@ -21,7 +21,7 @@ and then runs ndiff(1) between the last scan it can find and the current scan,
storing the output in CACHEDIR and printing it to stdout. This makes it useful
for running from cron(8):
.PP
- 0 0 * * 0 nwatch /etc/nwatch.mynet /var/log/nwatch/mynet
+ 0 0 * * 0 nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
.PP
I recommend you use croncrypt, so you don't leak your network information
in plain text in your email: https://github.com/tejr/croncrypt