best expression of a timeperiod with same hours every day

Justin Pryzby justinp at norchemlab.com
Sun Jan 24 19:41:50 CET 2010


Is there a shorter way of expressing this?  We have several cases
where we need this, with different intervals.  I was hoping there was
a way of writing it in fewer than 10 lines each.

define timeperiod {
        sunday          04:00-21:00
        monday          04:00-21:00
        tuesday         04:00-21:00
        wednesday       04:00-21:00
        thursday        04:00-21:00
        friday          04:00-21:00
        saturday        04:00-21:00
}

Thanks,
Justin

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list