How can I tell whether a specific application is running on my linux system (using python?).
For example I run Minecraft via a runnable jar file. Where does the system store that that process is running? Or if I run a simple "Hello world" python script with a wait call at the end (keeping the thread alive indefinitely), how could I test whether that thread was still alive or not from another python script?
The sudo code for what I want is roughly: isProcRunning(minecraft) or isProcRunning(home/usr/exampleScript)
I know that the Proc virtual file system exists, but I am unsure how to use it appropriately.
Any help would be appreciated.