I am asked to check and shut down the processes that I am not familiar with.
So when I ls under bin folder, I see multiple process .sh. But I want to know which process is associated with which tomcat process.
Is there any easy way to find out that?
Example startmyprocess1.sh, but when I do ps -ef | grep startmyprocess1 doesn't return the running process.
But actually the running tomcat process name is myprocess, so when I do ps -ef | grep myprocess, I can see the running process. To know that I have to ask the responsible person.
So, the names are different. If like that, I need to ask him several times. Any better way to figure this out?
grepthe name of the script useps l | grep startmyprocess1.grep myprocess startmyprocess1.shgives you some pointers. If the scripts are build by the same person, it is very likely you can find the same line in the other scripts too.