Created
March 16, 2012 18:54
-
-
Save v9n/2051834 to your computer and use it in GitHub Desktop.
Server status report in crond
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| */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