From 08c9bb65182799559364fbef348a194b5755bb6a Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 8 Dec 2005 02:11:57 +0000 Subject: [PATCH] throw away errors from ping --- getmail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);'; -- 2.39.5