Antwort: Re: Mail script help

From: Volker Gruenewald (Volker.Gruenewald@LINDE-MH.DE)
Date: Fri Jun 28 2002 - 07:06:14 EDT


hi,

I favour this one,

errnotify:
    en_pid = 0
    en_name = "myevent"
    en_persistenceflg = 1
    en_label = "CORE_DUMP"
    en_crcid = 0
    en_class = "S"
    en_type = "PERM"
    en_alertflg = ""
    en_resource = ""
    en_rtype = ""
    en_rclass = ""
    en_method = "errpt -a -l $1 | <yourmailprog> -s $9 (means subject =
ERR_LABEL) adress..etc..

added to the ODM for the Labels worth to be informed, just in time the
error occurs.

---------------------------------------------------
Volker Grünewald
IT Administration
Linde AG, material handling
Aschaffenburg / Germany
volker.gruenewald@linde-mh.de
www.linde.com
---------------------------------------------------

                    "Taylor,
                    David" An: aix-l@Princeton.EDU
                    <DTaylor@WBMI Kopie:
                    .COM> Thema: Re: Mail script help
                    Gesendet von:
                    IBM AIX
                    Discussion
                    List
                    <aix-l@Prince
                    ton.EDU>

                    27.06.2002
                    23:48
                    Bitte
                    antworten an
                    IBM AIX
                    Discussion
                    List

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 e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Linde Material Handling.

Since January 2002 we use the e-mail domain linde-mh.de instead
of linde-fh.de.

This mail has been swept for the presence of computerviruses.



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