Aaron Schrab wrote:
<> At 18:32 -0500 03 Jan 2000, Reto Lichtensteiger <rali(_at_)meitca(_dot_)com>
wrote:
<> > If you're going to wedge it with date, then try this:
<> >
<> > ARPATIME=`date +"%a, %d %b %Y %T"`
<> > formail -A "Date: $ARPATIME -0500"
<>
<> That will cause problems if your system honors daylight savings time,
<> because the offset will change. Also, depending upon how this is
<> getting invoked, the locale could cause problems.
Umph, yeah. Resetting the recipe twice yearly could be a pain <g>
Thanks for the improvements for locale.
<> But, the GNU version of date(1) provides an easy way to get a suitable
<> format:
<>
<> formail -A "Date: `date -R`"
Oooo! Now +this+ is useful to know. Domo arigato! This presumes one can
always rely on the machine having gnu's date, but it's still very useful.
RL
--
R A Lichtensteiger rali(_at_)meitca(_dot_)com -or-
rali(_at_)world(_dot_)std(_dot_)com
http://www.meitca.com/ITA/People/rali
"Yes, you're doing things right, but are you doing the right things?"
"Nope. I'm just doing something dumb fast."