Display the PID number for a given process name(s).
Drop-in replacement for the deprecated and removed NightProductions CLI.
Homebrew:
brew install zerospiel/tools/pidofRelease installer:
curl -fsSL https://raw.githubusercontent.com/zerospiel/pidof/master/install.sh | bashThe installer supports Darwin and Linux on amd64 and arm64.
Build from source with Go:
go install github.com/zerospiel/pidof/cmd@latestpidof <process-name>
Help:
pidof -?Examples:
pidof sshd
pidof bash zsh
pidof -s bash
pidof -x my-script.shmake helpBuild locally:
make buildTest:
make testValidate release locally:
make validate