Return to Snippet

Revision: 18757
at October 7, 2009 17:06 by fuzzylollipop


Initial Code
import java.lang.management.*

final String name = ManagementFactory.getRuntimeMXBean().getName();
final Integer pid = Integer.parseInt(name[0..name.indexOf("@")-1])

Initial URL


Initial Description


Initial Title
How to get platform independant PID using Groovy / Java 1.6

Initial Tags
java, groovy

Initial Language
Java