Processex
ProcessEx - find a os.Process (operating system process) by Name (FindByName) or PID (Find), crossplatform, lightly, fast and full compatible with stdlib os.Process.
Install / Use
/learn @biter777/ProcessexREADME
ProcessEx
ProcessEx - find a os.Process (operating system process) by Name (FindByName) or PID (Find), crossplatform, lightly, fast and full compatible with stdlib os.Process.
installation
go get github.com/biter777/processex
usage
func main() {
processName := "explorer.exe"
process, _, err := processex.FindByName(processName)
if err == processex.ErrNotFound {
fmt.Printf("Process %v not running", processName)
os.Exit(0)
}
if err != nil {
fmt.Printf("Process %v find error: %v", processName, err)
os.Exit(1)
}
fmt.Printf("Process %v PID: %v", processName, process.Pid)
}
options
For more complex options, consult the documentation.
contributing
(c) Biter
Welcome pull requests, bug fixes and issue reports. Before proposing a change, please discuss it first by raising an issue.
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
340.2kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
