I got a script running (as cronjob) that will list the files in a folder before doing a Rsync job and emailing me the list. How can I add a subject line.
find /path/to/folder/ -type f -size +1M -name "*.mov" -printf "%f\n" | ssmtp firstname.lastname@example.org
I tried this with -s "Subject" but no luck. It only works if I put the subject in a text file and call this text file
find /path/to/folder/ -type f -size +1M -name "*.mov" -printf "%f\n" | email@example.com < /path/to/file/subjectline.txt
But than it won't add the search results in the Message.
Any thoughts on what I am doing wrong,