From: Don Armstrong Date: Thu, 8 Dec 2005 02:11:57 +0000 (+0000) Subject: throw away errors from ping X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=08c9bb65182799559364fbef348a194b5755bb6a;p=bin.git throw away errors from ping --- diff --git a/getmail b/getmail index 44c2020..3a5fc55 100755 --- a/getmail +++ b/getmail @@ -14,7 +14,7 @@ fi; # See if the server exists if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then - if ping -q -c 3 $IMAPHOST >/dev/null; then + if ping -q -c 3 $IMAPHOST >/dev/null 2>&1; then nice -n 19 offlineimap -o -u Noninteractive.Basic 2>&1 |grep validity| \ perl -ne 'my ($account,$list) = /UID validity problem for folder ([\w-]+)\.([\w-]+)/; qx(/home/don/bin/deletemailbox -a $account $list > /dev/null);';