I need to be able to list the command line arguments (if any) passed to other running processes. I have the PIDs already of the running processes on the system, so basically
By using psutil ( https://github.com/giampaolo/psutil ):
>>> import psutil, os >>> psutil.Process(os.getpid()).cmdline() ['C:\\Python26\\python.exe', '-O'] >>>