From 758d6f28dca0f2422faf2201b9a4ca00e5ffe1c4 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Mon, 25 Jan 2021 23:51:43 +0100 Subject: [PATCH] Hide stderr output of lsof in jobutils --- Utilities/Tools/jobutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Tools/jobutils.sh b/Utilities/Tools/jobutils.sh index d8caf99b869da..bd7a2d8b1db85 100644 --- a/Utilities/Tools/jobutils.sh +++ b/Utilities/Tools/jobutils.sh @@ -24,7 +24,7 @@ o2_cleanup_shm_files() { which lsof &> /dev/null if [ "$?" = "0" ]; then # find shared memory files **CURRENTLY IN USE** by FairMQ - USEDFILES=`lsof -u $(whoami) | grep -e \"/dev/shm/.*fmq\" | sed 's/.*\/dev/\/dev/g' | sort | uniq | tr '\n' ' '` + USEDFILES=`lsof -u $(whoami) 2> /dev/null | grep -e \"/dev/shm/.*fmq\" | sed 's/.*\/dev/\/dev/g' | sort | uniq | tr '\n' ' '` echo "${USEDFILES}" if [ ! "${USEDFILES}" ]; then