Skip to content

Commit

Permalink
Hide stderr output of lsof in jobutils
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr authored and sawenzel committed Jan 26, 2021
1 parent 06044c1 commit 758d6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/Tools/jobutils.sh
Expand Up @@ -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
Expand Down

0 comments on commit 758d6f2

Please sign in to comment.