karl,

Try this:
rickdman # mail -s "Date test `date`" rickdman
Howdy,
Work?
me.
.
EOT

And the results:

Date: Thu, 9 Apr 1998 20:01:49 -0500
To: [EMAIL PROTECTED]
From: "Rick L. Mantooth" <[EMAIL PROTECTED]>
Subject: Date test Thu Apr  9 20:01:41 CDT 1998

Howdy,
Work?
me.

Notice the (`) backtics around `date`

Rick
On Thu, 9 Apr 1998, Karl Asseily wrote:

> Hello,
> 
> I am trying to insert the date in a mail subject. Every day, I want cron to
> send me a mail with the subject "Daily Report, <date>".
> I wanna know how I can replace <date> by a string which will insert the
> current date.
> (I am using the command 'mail -s').
> 
> Any hints?
> 
> Thanks
> 
> karl
> 
> ----
> "Through the firewall, out the router, down the T1, across the
> backbone, bounced from satellite, Nothing but net."
> 
> +-------------------------------------------------------------+
> Karl R. Asseily                              Binary Compass Enterprises
> E-Mail: [EMAIL PROTECTED]   http://www.BizRate.com
> Alternate: [EMAIL PROTECTED]       http://www.BinaryCompass.com
> +-------------------------------------------------------------+
> 
> 
> 
--
Rick L. Mantooth        [EMAIL PROTECTED]
http://www.why.net/users/rickdman/index.html
It's lonely at the top, but you eat better.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to