-
-
Save d1rk/6437182 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/bash | |
# For PHP5 and /etc/php5/php.ini you would setup like so: | |
# sendmail_path = "/path/to/sendmailsink.sh" | |
LOGFILE="/var/log/sendmailsink" | |
NOW=`date +%Y-%m-%d\ @\ %H:%M:%S` | |
echo "$NOW || $0 $*" >> $LOGFILE | |
echo >> $LOGFILE | |
while read BUF | |
do | |
echo $BUF >> $LOGFILE | |
done | |
echo "=================================" >> $LOGFILE | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment