Sometimes using ps with default settings is not enough to find the process ID for a program, because it may not have the correct program name you want. Take for example, catalina (tomcat) running under the process ID name of ‘java’ – how do you know which ‘java’ process is catalina?
Use the following:
/usr/ucb/ps -auxww | grep <search string>
/usr/ucb/ps -auxww | grep catalina