Last active
February 7, 2024 09:52
-
-
Save vnznznz/7d9f4e7289b8654d00067adf9d44c789 to your computer and use it in GitHub Desktop.
Sendmail dummy for logging cron mails to syslog. Save it to `/usr/sbin/sendmail`, apply `chmod +x` and then see cron mails in `journalctl -f`
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
#!/bin/bash | |
/usr/bin/logger -t "sendmail" "'$*'" | |
/usr/bin/logger -t sendmail <&0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment