teusink / Home-Security-by-Pi

Description on how I configured the installation and Security of Raspberry Pi and how I keep it fit for use and purpose.
MIT License
40 stars 11 forks source link

Cron mails error to wrong address #30

Closed teusink closed 6 years ago

teusink commented 6 years ago

Cron mails error to wrong address

teusink commented 6 years ago

Somehow the aliases are ignored in this case. As it is about errors in regard to the pi-update.sh script, I change the manual on all occasions in such way that errors are also piped to the log-file.

Makes me figure why not in the first place :).

It is done by this: sudo command >file.log 2>&1