In crontab I have the following cronjob working.
0 0 * * * mysqldump -e --user=root --password=MYPASSWORD MYDB | gzip | uuencode db_
date +"\%Y-\%m-\%d".gz | mail -s '
date +"\%Y-\%m-\%d"_dump' firstname.lastname@example.org
I expect the email I get to have the subject 2013-09-14_dump and the attachment to be called db_2013-09-14_dump.gz
however when I revieve this email the attachment is as expected by the subject in my inbox is
What am i doing wrong here? How can I get the subject to be the date?