From 652fca2abca88cba52d29363469fca334ff61251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 24 Jun 2020 10:39:45 +0200 Subject: [PATCH] Redirect qmod stdout to /dev/null --- cluster/sge.disable.host.queue.sh | 2 +- cluster/sge.enable.host.queue.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cluster/sge.disable.host.queue.sh b/cluster/sge.disable.host.queue.sh index 5ed7b7b..226d565 100755 --- a/cluster/sge.disable.host.queue.sh +++ b/cluster/sge.disable.host.queue.sh @@ -161,7 +161,7 @@ disable_sge_queue() { # {{{ Try to disable SGE queue: ${RED}${local_sge_queue_name:=/dev/null}@${local_sge_hostname:=/dev/null}${COLOR_DEBUG}." ## SGE command to disable the queue - qmod --disable "${local_sge_queue_name}@${local_sge_hostname}" \ + qmod --disable "${local_sge_queue_name}@${local_sge_hostname}" > /dev/null \ && return_disable_queue="${?}" return "${return_disable_queue}" diff --git a/cluster/sge.enable.host.queue.sh b/cluster/sge.enable.host.queue.sh index c4c852e..bc425df 100755 --- a/cluster/sge.enable.host.queue.sh +++ b/cluster/sge.enable.host.queue.sh @@ -288,7 +288,8 @@ enable_sge_queue() { # {{{ debug_message "enable_sge_queue − \ Previously disabled by a script (or FORCE is enable), try to enable SGE queue: ${RED}${local_sge_queue_name:=/dev/null}@${local_sge_hostname:=/dev/null}${COLOR_DEBUG}." ## SGE command to enable the queue - qmod --enable "${local_sge_queue_name}@${local_sge_hostname}" \ + qmod --enable "${local_sge_queue_name}@${local_sge_hostname}" > /dev/null \ + && message "Enable SGE queue: ${RED}${local_sge_queue_name:=/dev/null}@${local_sge_hostname:=/dev/null}${RESET}" \ && return_enable_queue="${?}" else message "SGE queue: ${RED}${local_sge_queue_name:=/dev/null}@${local_sge_hostname:=/dev/null}${RESET} was manually disabled, please re-enable it ${RED}manually${RESET} (or use --force option)."