Use a pipe, with the contents of the email. I have used that in a script.
~~~~~
Thank you, this helps. Using the -a switch I noticed 'mail' only sends one attachment even if using a wild card.
For example, mail -s Test -a LN*.log me@example.com, will only send the fist file with LN and not the rest.
LN080303.log <--- 'mail' will attach this and no others. LN080304.log LN080305.log LN080306.log
How can 'mail' send more than one file?
Perhaps listing them explicitly: -a LN080303.log -a LN080304.log -a LN080305.log .... etc. ~~~~~~~ That would be good except those file names, dates actually, will change daily. I am going to integrate this into a cron job. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org