My cron job is running the following line:
*/40 * * * * cd /home/qa/prod/seo/casino && make testv 2> /dev/stdout | /usr/sbin/sendmail -t email@example.com
As you can see I am using the sendmail package. The thing I don't manage to find out is how to add a subject to the currently-running cron schedule.
I've came across the following :
echo "Subject: Testing" | cat - /home/file1.out | /usr/sbin/sendmail -t firstname.lastname@example.org
However, I have no idea whats the 'cat - /home/file1.out' pipeline does in this case, or how I can integrate it with my own.
Help would be appreciated!