F
FET
Hi everybody,
This is pretty strange. Java seems unable to recognise the /proc file
system on linux. The same thing can be accessed from C++ programs
without any special programming logic, just simple file handling
calls.
I basically want to find out if a process is running or it has stopped
and display the status to the user. So I figured that using the /proc
filesystem, I can simply check the PID of the process (which is stored
in a known location on the disk by the process itself).
But I am unable to do this through java.
Can anyone please help me out?
Thanks in advance.
Regards.
This is pretty strange. Java seems unable to recognise the /proc file
system on linux. The same thing can be accessed from C++ programs
without any special programming logic, just simple file handling
calls.
I basically want to find out if a process is running or it has stopped
and display the status to the user. So I figured that using the /proc
filesystem, I can simply check the PID of the process (which is stored
in a known location on the disk by the process itself).
But I am unable to do this through java.
Can anyone please help me out?
Thanks in advance.
Regards.