java checking pid

W

Wil

I want to check the pid of a different program using java if possible.

Basically I need to know if another process or application is running
on the same machine and when it stops running. I would like to check
it's status every few seconds or so.

I don't know if this is possible to do in java. I might have to use
the native interface or something else.

Thank you,
Wil
 
N

nos

write a shell script or simple program that
puts the status in a file or maybe use two
files if you need one to act as a flag

Then in java you just check the file(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top