Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sap_facts.sh - print only command column with ps
The output of "ps -ef" not also includes the command but also the process age. When grepping for instance number '00', it can also match for a displayed process age like 00:00:01. So only print the columns that are really needed which is the command. Example: desadm 2640 1 0 15:16 ? 00:00:00 /usr/sap/DES/ASCS01/exe/sapstartsrv pf=/usr/sap/DES/SYS/profile/DES_ASCS01_sapdes -D -u desadm ^^ ^^ ^^ desadm 2879 1 0 15:16 ? 00:00:01 /usr/sap/DES/D00/exe/sapstartsrv pf=/usr/sap/DES/SYS/profile/DES_D00_sapdes -D -u desadm Only line 2 should match but because of the time value, the first line matches also when grepping for instance 00.
- Loading branch information