Skip to content

zerospiel/pidof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Display the PID number for a given process name(s). Drop-in replacement for the deprecated and removed NightProductions CLI

Topics

Resources

License

Stars

Watchers

Forks

Contributors