I am trying to send a mail with attachment and a subject line using unix's mail command but I get an error if I have both. If I only have a subject line it works, if I only have a attachment it works but not both. Anyone know how to do this?
data.out | mail -s "DATA" [email protected] < text.out
So this results in "Ambiguous input redirect"
cat data | cat <other?