Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cirocosta/pidpath

Retrieves the absolute path to the executable of a running process
https://github.com/cirocosta/pidpath

golang linux macos

Last synced: 28 days ago
JSON representation

Retrieves the absolute path to the executable of a running process

Awesome Lists containing this project

README

        

pidpath - retrieves the absolute path to the executable of a running process

Usage:

pidpath

Example:

ps aux | grep bash
vagrant 3249 0.0 0.2 23156 5220 pts/0 Ss 22:57 0:00 -bash

pidpath 3249
/bin/bash

Install:

go get github.com/cirocosta/pidpath

Know more:

https://ops.tips/blog/macos-pid-absolute-path-and-procfs-exploration/#a-golang-binary-that-suits-linux-and-macos