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

not truncate process name on Mac

Open yeonsh opened this issue 10 years ago • 2 comments

process_darwin.h changed to use proc_listpids, proc_pidinfo and proc_pidpath.

yeonsh avatar Dec 09 '15 04:12 yeonsh

@mitchellh would be great to merge this?

An alternative I was using previously, was parsing ps ax -o pid,comm which lists the full executable path name, but am trying to avoid that.

gabriel avatar May 02 '16 18:05 gabriel

In this fork, https://github.com/keybase/go-ps, I added a Path() method to Process which returns the full path to executable.

Supported on windows and darwin. (Uses this patch for darwin.)

gabriel avatar May 14 '16 00:05 gabriel