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 Chriss Miller 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
Joined
Nov 9, 2004
Messages
14
Location
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
 
What's the problem for that sollution?

Cheers,
Dian
 
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