Shell script to stop a java program -


Knowing a single name is a way to stop Java programs by using a shell script. I add ksh shell

To easily recognize this, add a unique property to JVM, e.g. For test.class,

  java -Duniquename = 1 test  

to kill it:

  ps ax | Grep uniquename | Grep -v grep | Awk '{print $ 1}' | Kill Xargs  

Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

unix - Listing all shared memory segments used by a process on AIX5.3+ -