Hi all,
Hoping someone might know the answer to this... I'm looking for a simple way to send the output of a shell script via email (on Solaris), and I'd like to include From: and Subject: headers in those mails. Google hasn't been much help -- seems most of the mail command resources involve reading mail.
In a simple form, what I'm doing is this:
ls -l | mail myname@myhost.com
Mail arrives from root@myhost with no subject line. I'd like to specify a subject, as well as a From: address
Thanks in advance,
Chuck
Hoping someone might know the answer to this... I'm looking for a simple way to send the output of a shell script via email (on Solaris), and I'd like to include From: and Subject: headers in those mails. Google hasn't been much help -- seems most of the mail command resources involve reading mail.
In a simple form, what I'm doing is this:
ls -l | mail myname@myhost.com
Mail arrives from root@myhost with no subject line. I'd like to specify a subject, as well as a From: address
Thanks in advance,
Chuck