Skip to content
Snippets Groups Projects
Commit 40d4c7ab authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

check requirements - update ps params

parent 8f09470d
No related branches found
No related tags found
1 merge request!56check requirements - update ps params
...@@ -93,10 +93,10 @@ function newline(){ ...@@ -93,10 +93,10 @@ function newline(){
} }
# check in process list # 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(){ function chkProcess(){
local label="$1" local label="$1"
test -z "$PROCESSES" && PROCESSES=$( ps x ) test -z "$PROCESSES" && PROCESSES=$( ps aux )
COUNT+=1 COUNT+=1
local found=$( echo "$PROCESSES" | grep -v "grep" | grep -v "$self" | grep -E "$label" ) local found=$( echo "$PROCESSES" | grep -v "grep" | grep -v "$self" | grep -E "$label" )
if [ -z "$found" ]; then if [ -z "$found" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment