Sometimes, we will be having a requirement to kill the JAR processes that are in execution status.
Below command is to get the process id of the running JSR execution process and kill it.
kill $( ps -ef | grep $JAR_FILE | grep -v -e "grep" | awk '{print $2}')
No comments:
Post a Comment