From 15992d93937eb43faa6c8430802f92b98605c2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 22 Dec 2021 10:53:33 +0100 Subject: [PATCH] Ignore error message for qconf result --- cluster/apt.apply.update.sh | 2 +- cluster/apt.check.update.sh | 2 +- cluster/maco.apply.update.sh | 2 +- cluster/sge.enable.host.queue.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster/apt.apply.update.sh b/cluster/apt.apply.update.sh index f115d88..49f93bf 100755 --- a/cluster/apt.apply.update.sh +++ b/cluster/apt.apply.update.sh @@ -76,7 +76,7 @@ is_sge_host() { # {{{ SGE seems present on this host." ### And verify if the host is fully configured as a submit host - if qconf -ss | grep --word-regexp --quiet $(hostname -f); then + if qconf -ss 2>/dev/null | grep --word-regexp --quiet $(hostname -f); then debug_message "is_sge_host − \ The host seems configured as a SGE submit host." return_is_sge_host="0" diff --git a/cluster/apt.check.update.sh b/cluster/apt.check.update.sh index f85f934..5ecb5fb 100755 --- a/cluster/apt.check.update.sh +++ b/cluster/apt.check.update.sh @@ -99,7 +99,7 @@ is_sge_host() { # {{{ SGE seems present on this host." ### And verify if the host is fully configured as a submit host - if qconf -ss | grep --word-regexp --quiet $(hostname -f); then + if qconf -ss 2>/dev/null | grep --word-regexp --quiet $(hostname -f); then debug_message "is_sge_host − \ The host seems configured as a SGE submit host." return_is_sge_host="0" diff --git a/cluster/maco.apply.update.sh b/cluster/maco.apply.update.sh index 66c9530..a98c150 100755 --- a/cluster/maco.apply.update.sh +++ b/cluster/maco.apply.update.sh @@ -81,7 +81,7 @@ is_sge_host() { # {{{ SGE seems present on this host." ### And verify if the host is fully configured as a submit host - if qconf -ss | grep --word-regexp --quiet $(hostname -f); then + if qconf -ss 2>/dev/null | grep --word-regexp --quiet $(hostname -f); then debug_message "is_sge_host − \ The host seems configured as a SGE submit host." return_is_sge_host="0" diff --git a/cluster/sge.enable.host.queue.sh b/cluster/sge.enable.host.queue.sh index 21434f6..ecffbce 100755 --- a/cluster/sge.enable.host.queue.sh +++ b/cluster/sge.enable.host.queue.sh @@ -179,7 +179,7 @@ is_sge_host() { # {{{ SGE seems present on this host." ### And verify if the host is fully configured as a submit host - if qconf -ss | grep --word-regexp --quiet $(hostname -f); then + if qconf -ss 2>/dev/null | grep --word-regexp --quiet $(hostname -f); then debug_message "is_sge_host − \ The host seems configured as a SGE submit host." return_is_sge_host="0"