From c21b00c090dadf402468086472948f8d71dfde9a Mon Sep 17 00:00:00 2001 From: clinton_admin Date: Tue, 24 Mar 2015 16:46:31 -0400 Subject: [PATCH] hcoop-kprop: invert grep exit status to shut cron up We want to eat the success message while allowing any error output to be displayed, but we also want to return success. --- hcoop-kprop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcoop-kprop b/hcoop-kprop index 4cb0f2f..ef30ef6 100755 --- a/hcoop-kprop +++ b/hcoop-kprop @@ -11,7 +11,7 @@ export PATH=$PATH:/usr/sbin:/sbin kdb5_util dump /var/lib/krb5kdc/slave_datatrans kprop hopper.hcoop.net \ - 2>&1 | grep -v 'Database propagation to hopper.hcoop.net: SUCCEEDED' + 2>&1 | (! grep -v 'Database propagation to hopper.hcoop.net: SUCCEEDED') # disabled because the kdc is too old and can't load dumps from fritz --clinton #kprop deleuze.hcoop.net \ -- 2.20.1