[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #YGA-963195]: Future LDM feature request


> Aha! So now I've done this, with my Postfix MTA:
> 1,6,11,16,21,26,31,36,41,46,51,56 * * * * /bin/bash -l -c 'wasReceived -f
> "WMO|NIMAGE|NGRID|NEXRAD3" -o 180' || /bin/mail -s 'NOAAPORT data has not
> been received in the last 3 minutes' address@hidden
> </dev/null
> I assume I can put commas after each email address so that I can send it
> to more than one recipient.

No! The man(1) page for mailx(1) indicates that the email addresses should be 

> One more question:
> # Check on the LDM, make sure it is running.
> 1,16,31,46 0 * * * /bin/bash -l -c '/home/ldm/bin/ldmadmin check >/dev/null'
> OK, what if I want that to be sent to another email address, like the
> above? Yep, my scripting knowledge is poor.

Assuming you want to check the LDM every 15 minutes rather than 4 times during 
the midnight hour, I'd try

    1,16,31,46 * * * * /bin/bash -l -c 'bin/ldmadmin check >check.log 2>&1' || 
mailx -s '"ldmadmin check" problem' address@hidden <check.log

> Gilbert
> *******************************************************************************
> Gilbert Sebenste                                                     ********
> (My opinions only!)                                                  ******
> Staff Meteorologist, Northern Illinois University                      ****
> E-mail: address@hidden                                  ***
> web: http://weather.admin.niu.edu                                      **
> *******************************************************************************

Steve Emmerson

Ticket Details
Ticket ID: YGA-963195
Department: Support LDM
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.