Hello community,
I have to find a way to get list of PID's and paths to the executables they represent. On Windows I did it using CreateToolhelp32Snapshot procedure but it is for windows only. Are there any alternatives for Mac OS X ?
What I try to achieve is a list of Pid|Executable like 1234|/bin/someprogram
Of course I could parse the output of ps -A command, but is there another way? If there is no other way may someone share ones code of parsing ps ?
Thank you in advance!