Using ps -ef | grep tomcat
I found a tomcat server that is running. I tried kill -9 {id}
but it returns "No such process." What am I doing wrong?
Here's an example:
Admins-MacBook-Pro:test-parent tom.maxwell$ ps -ef | grep tomcat
2043706342 39707 39695 0 3:40PM ttys000 0:00.00 grep tomcat
Admins-MacBook-Pro:test-parent tom.maxwell$ kill -9 39707
-bash: kill: (39707) - No such process