I have this Legato application which generates a file and then it pipes it to mailx.
cat << savelog.txt | mailx -s "Saverpt `date +"%c`"
myemail@xxx.com
The "savelog.txt does get created and is owned by root and other group, but yet will not email using mailx to
myemail@xxx.com.
Mailx emails me from "root" instead of the application user and only emails the "Subject Line" and not the text file. Can someone assist why this is happening.
When I am logged in as myself (userme) and run the script from the command line I get the email fromt
userme@xxx.com and the contents of the file in the email. So what is different.