Skip to content

Instantly share code, notes, and snippets.

@v9n
Created March 16, 2012 18:54
Show Gist options
  • Select an option

  • Save v9n/2051834 to your computer and use it in GitHub Desktop.

Select an option

Save v9n/2051834 to your computer and use it in GitHub Desktop.
Server status report in crond
*/15 * * * * echo -e "Subject: Server Status\nDaemon:\n" > /tmp/slog; ps -A >> /
tmp/slog; top - n 1 -b >> /tmp/slog; cat /tmp/slog | sendmail -f daemon@axcoto.
com [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment