Re: Mail script help

From: Taylor, David (DTaylor@WBMI.COM)
Date: Thu Jun 27 2002 - 17:48:54 EDT


Get the last 24 hours, regardless of when you run it:

(I'm in CST)

-----------------

TZ=CST30CDT
YESTERDAY=`date +%m%d%H%M%y`
TZ=CST6CDT
errpt -s $YESTERDAY | mail -s "Errpt for xyz" user@someplace.com

-----------------

David

-----Original Message-----
From: antfio@MUZE.COM [mailto:antfio@MUZE.COM]
Sent: Thursday, June 27, 2002 4:08 PM
To: aix-l@Princeton.EDU
Subject: Mail script help

Hello all,

        I'm thinking of having a cronjob email me the output of errpt
sometime in the morning. Would this syntax work?

        errpt | mail -s "Errpt for xyz" user@someplace.com

TIA,

Anthony

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:01 EDT