go-ps icon indicating copy to clipboard operation
go-ps copied to clipboard

Retrieving the full path of a process

Open lprat opened this issue 4 years ago • 1 comments

Hi,

First, thank for you tool! I would like to known if possible to implemente feature to obtains full path of a process. For linux is just read "/proc/PID/exe"... On windows, maybe like https://github.com/kardianos/osext/blob/master/osext_windows.go ...

Thanks. Lionel

lprat avatar Feb 19 '21 08:02 lprat

I have a use case of trying to relaunch a list of processes.

In my case, I really need the absolute path to the binaries and other important data, including argv, environment variables, user ID's, and working directory.

mcandre avatar Apr 09 '21 23:04 mcandre