Created
August 29, 2016 14:30
-
-
Save xurenlu/6de5cfd53cd4537becbdd3a93aa9eb6c to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
echo "Subject:php error from q2.glz8.com | |
" > /tmp/mail_temp | |
tail -n 10 /var/log/php/php-error.log >> /tmp/mail_temp | |
sendmail xurenlu@glz8.com < /tmp/mail_temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment