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
Branches
No related tags found
1 merge request!56check requirements - update ps params
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment