From 40d4c7ab50c00ba8623ee56a26da13b0674ef6b8 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 13 Feb 2023 16:49:02 +0100 Subject: [PATCH] check requirements - update ps params --- check_requirements | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_requirements b/check_requirements index 693b561..415cb77 100755 --- a/check_requirements +++ b/check_requirements @@ -93,10 +93,10 @@ function newline(){ } # check in process list -# param string regex to search for in output of "ps x" +# param string regex to search for in output of "ps aux" function chkProcess(){ local label="$1" - test -z "$PROCESSES" && PROCESSES=$( ps x ) + test -z "$PROCESSES" && PROCESSES=$( ps aux ) COUNT+=1 local found=$( echo "$PROCESSES" | grep -v "grep" | grep -v "$self" | grep -E "$label" ) if [ -z "$found" ]; then -- GitLab