Skip to content

Commit a48fcd2

Browse files
authored
Merge pull request #28 from jhohwieler/sap_facts.sh-ps-command-column
sap_facts.sh - ps print only executable with path
2 parents 5ff9992 + 8ee8993 commit a48fcd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/sap_facts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function check_sapstartsrv(){
286286
# $3 - NR
287287

288288
## Count the number of sapstartsrv processes
289-
SAPSTARTSRV=$(ps -ef | grep $2 | grep $3 | grep sapstartsrv | wc -l)
289+
SAPSTARTSRV=$(ps -eo exe | grep $2 | grep $3 | grep sapstartsrv | wc -l)
290290

291291
if [[ $SAPSTARTSRV = 0 ]]; then
292292
## No sapstartsrv process running - attempt to start

0 commit comments

Comments
 (0)