It gets tiring to write,
$ jps -lvfollowed by,
48231 /opt/eclipse-3.5.1/org.eclipse.equinox.launcher_1.0.201.jar -Xmx1024m
10258 /opt/boisvert/jedit-4.3.2/jedit.jar -Xmx192M
5295 sun.tools.jps.Jps -Dapplication.home=/opt/boisvert/jdk1.6.0_21 -Xms8m
$ kill 48231You know, with the cut & paste in-between ... so I have this Ruby shell script called
killjava
, a close cousin of killall
:$ killjava -hthat does the job. It's not like I use it everyday but everytime I use it, I'm glad it's there.
killjava [-9] [-n] [java_main_class]
-9, --KILL Send KILL signal instead of TERM
-n, --no-prompt Do not prompt user, kill all matching processes
-h, --help Show this message
Download the script from Github (requires Ruby and UNIX-based OS).
No comments:
Post a Comment