Linux correct reading of PID Linux

0

I'm having a hard time reading the process PID. Displays the message below, but I can not understand beyond the buy.sh script what else is presented. I also saw that it has 2 .jar, are these processes in a row or are they continuous?

  

root 28140 28125 0 06:50? 00:00:54 java -Xms256M   -Xmx1024M -classpath ../lib/63_CME_MessageFactoryPatch.jar:../lib/fix-application-server.jar:../resources   -Dcom.cameronsystems.fix.management.JMXManagementService.startupScript = / home / CameronFIX / SocketAdapter / buy.sh   com.cameronsystems.fix.universalserver.UniversalServer -id buy   -xmlconfig Buy_dsv.xml -server buy1 -cluster buyCluster_dsv -nogui

    
asked by anonymous 17.10.2017 / 18:20

1 answer

1

This is a process only, the PID of it is in the second column from left to right. The process is java, the rest is parameters.

You can get the exact PID number by running the

pidof nome_do_processo

or

ps aux | grep nome_do_processo | grep -v grep | awk '{print $2}'

The return of these commands is the exact number of the PID, if you have more processes with the same name, you will list more than one pid number.

    
20.10.2017 / 14:33