I am using this line
( cat bodyText.txt; uuencode backup.tar ) | mail -s "backup" myEmail@myserver.com
inside a bash script that will be fired by cron.
This line is almost perfect, but it hangs waiting for Ctrl-D to be typed, so the message and the attachement could be sent.
How do I include a Ctrl-D inside a bash script to make this line work?

cat bodyText.txt | uuencode backup.tar| mail -s "backup" myEmail@myserver.com– Rahul Patil Jan 10 at 12:29( cat bodyText.txt; uuencode backup.tar ; echo -e "\n.\n" ) | mail -s "backup" myEmail@myserver.comalready? – ott-- Jan 10 at 12:44