$ nwatch HOSTLIST CACHEDIR
Example with root privileges:
# 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
0 0 * * 0 nwatch /etc/nwatch.mynet /var/cache/nwatch/mynet
I recommend you use
croncrypt(1), so you
don't leak your network information in plain text in your email.
Please also consider whether your scan actually requires root privileges, and could not instead be run by a dedicated user with appropriately limited privileges.
Nmap is a registered trademark of Insecure.Com LLC, and this project is not affiliated with it.