Redirect qmod stdout to /dev/null

This commit is contained in:
Jeremy Gardais 2020-06-24 10:39:45 +02:00
parent 2ffd9ce5bd
commit 652fca2abc
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 3 additions and 2 deletions

View File

@ -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}"

View File

@ -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)."