diff --git a/plugins/modules/sap_facts.sh b/plugins/modules/sap_facts.sh index 8706585..389e345 100755 --- a/plugins/modules/sap_facts.sh +++ b/plugins/modules/sap_facts.sh @@ -286,7 +286,7 @@ function check_sapstartsrv(){ # $3 - NR ## Count the number of sapstartsrv processes - SAPSTARTSRV=$(ps -ef | grep $2 | grep $3 | grep sapstartsrv | wc -l) + SAPSTARTSRV=$(ps -eo exe | grep $2 | grep $3 | grep sapstartsrv | wc -l) if [[ $SAPSTARTSRV = 0 ]]; then ## No sapstartsrv process running - attempt to start