From: clinton_admin Date: Tue, 24 Mar 2015 20:46:31 +0000 (-0400) Subject: hcoop-kprop: invert grep exit status to shut cron up X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/c21b00c090dadf402468086472948f8d71dfde9a 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. --- 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 \