Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java process control

Status
Not open for further replies.

epsonic

Programmer
Nov 9, 2004
14
DE
Hi,
is there a possibility to find out if a process is running or not based on it's name?
Note:The process was not started in the same context.

The solution must be better than the following:
:)
Runtime.getRuntime().exec("ps x | grep processname").getInputStream()
etc..
Thank you
 
It is not platform independent, and not a very stable solution.
 
I don't think you can do it platform independent.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top