Centralizing NRPE Configuration

Andreas Ericsson ae at op5.se
Wed Nov 28 16:03:05 CET 2007


Cipriani, Robert C wrote:
> I like the idea of being able to say "add line x to file y if
> line x doesn't yet exist".
> 

grep -q "^$line$" file || echo "$line" >> file

oh gods, that was a tricky one! ;-)

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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