I am running a php script from the command line. Is there any way to test if a certain process is running on the system and get general process information?
what kinda process information and on what OS?
I am running redhat 7.2. I am interested in testing if a process I started is still running. Thats the main thing I need. It would be nice to get other info on the process as well such as mem, execution time, etc.
That might be a little insecure through a php script if it's run from the web. But yeah it should be doable with using the exec() or system() commands to return ps information.