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: about 1 year ago
JSON representation
Retrieves the absolute path to the executable of a running process
- Host: GitHub
- URL: https://github.com/cirocosta/pidpath
- Owner: cirocosta
- Created: 2018-09-24T00:40:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-03T21:54:30.000Z (over 4 years ago)
- Last Synced: 2025-03-30T22:32:30.497Z (about 1 year ago)
- Topics: golang, linux, macos
- Language: Go
- Homepage: https://ops.tips/blog/macos-pid-absolute-path-and-procfs-exploration/#a-golang-binary-that-suits-linux-and-macos
- Size: 1.15 MB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
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