Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 1.12 KB

File metadata and controls

75 lines (50 loc) · 1.12 KB

pidof

Codecov CI

Display the PID number for a given process name(s).

Drop-in replacement for the deprecated and removed NightProductions CLI.

Installation

Homebrew:

brew install zerospiel/tools/pidof

Release installer:

curl -fsSL https://raw.githubusercontent.com/zerospiel/pidof/master/install.sh | bash

The installer supports Darwin and Linux on amd64 and arm64.

Build from source with Go:

go install github.com/zerospiel/pidof/cmd@latest

Usage

pidof <process-name>

Help:

pidof -?

Examples:

pidof sshd
pidof bash zsh
pidof -s bash
pidof -x my-script.sh

Local development

make help

Build locally:

make build

Test:

make test

Validate release locally:

make validate