From aeb380347aaeeaeacaddb4afc23179534632e526 Mon Sep 17 00:00:00 2001 From: Amery Song Date: Tue, 31 Mar 2020 13:09:25 +0800 Subject: [PATCH] case-lib: redirect nohup stdout and stderr to /dev/null If only redirect nohup stdout to /dev/null, we will see 'nohup: redirecting stderr to stdout' message from nohup when manually run './check-kmod-load-unload.sh -l1'. Signed-off-by: Amery Song --- case-lib/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index db311db2..2cab1467 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -95,7 +95,7 @@ func_lib_restore_pulseaudio() do user=${line%% *} cmd=${line#* } - nohup sudo -u $user $cmd >/dev/null & + nohup sudo -u $user $cmd &>/dev/null & done # now wait for the pulseaudio restore in the ps process timeout=10