I have a strange problem. I use the following command line to send an eMail with attachment via console:
/usr/bin/mutt -s "AwStats $(date +%d.%m.%Y)" -a /path/to/file firstname.lastname@example.org < /dev/null
Works like a charm.
But I want it sent via cron, so I created this cronjob:
@daily root /usr/bin/mutt -s "AwStats $(date +%d.%m.%Y)" -a /path/to/file email@example.com < /dev/null
The cronjob does get executed, but fails with this error message:
/bin/sh: -c: line 0: unexpected EOF while looking for matching `)' /bin/sh: -c: line 1: syntax error: unexpected end of file
I have no idea why. Would anyone be able to help? Thank you VERY much in advance!
Kind regards -A