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?