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

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



Gilbert,

> 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 
space-separated.

> 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' somebody@somehost <check.log

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

Regards,
Steve Emmerson

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