jarrodhroberson
2/14/2014 - 3:00 AM

Get the PID of a running Java process using only Bash tools

Get the PID of a running Java process using only Bash tools

ps -ax | grep "java -jar" | grep -v "grep" | cut -d " " -f 1