Skip to content

Instantly share code, notes, and snippets.

@bsmithyman
Last active September 14, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsmithyman/37bd352822989bea1948 to your computer and use it in GitHub Desktop.
Save bsmithyman/37bd352822989bea1948 to your computer and use it in GitHub Desktop.
Crontab entry for vnstati to email
0 7 1 * * (vnstati -m -i eth1 -o /tmp/vnstati.png && uuencode /tmp/vnstati.png /tmp/vnstati.png && vnstati -d -i eth1 -o /tmp/vnstati.png && uuencode /tmp/vnstati.png /tmp/vnstati.png) | mailx -s "Network Usage" brendan@bitsmithy.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment