Redirect qmod stdout to /dev/null
This commit is contained in:
parent
2ffd9ce5bd
commit
652fca2abc
|
@ -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}"
|
||||
|
|
|
@ -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)."
|
||||
|
|
Loading…
Reference in New Issue