Changing the Cron Subject Line Email Output (Ubuntu)

Instead of using the default MAILTO of the cron file you can use the mail program installed on your server to send the email with a custom “Subject Line”.

10 1 * * * /var/myscript.sh | mail -s "Changing Cron subject line  " ycsoftware@ycsoftware.net
Let's share thisShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Leave a Reply


*