diff --git a/process/process_darwin.go b/process/process_darwin.go index 11c1cd3..0672228 100644 --- a/process/process_darwin.go +++ b/process/process_darwin.go @@ -85,7 +85,7 @@ func (p *Process) Exe() (string, error) { return "", err } - cmd := []string{"-p", string(p.Pid), "-Fn", "|", "awk", "'NR==3{print}'", "|", "sed", "'s/n\\//\\//'"} + cmd := []string{"-p", strconv.Itoa(int(pid)), "-Fn", "|", "awk", "'NR==3{print}'", "|", "sed", "'s/n\\//\\//'"} fmt.Println(strings.Join(cmd, " "))