Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tklauser/ps
List, find and inspect operating system processes in Go
https://github.com/tklauser/ps
bsd go golang linux posix process processes procfs sysctl system-information unix windows
Last synced: 2 months ago
JSON representation
List, find and inspect operating system processes in Go
- Host: GitHub
- URL: https://github.com/tklauser/ps
- Owner: tklauser
- License: bsd-3-clause
- Created: 2021-11-01T07:20:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:59:45.000Z (2 months ago)
- Last Synced: 2024-10-24T07:05:19.646Z (2 months ago)
- Topics: bsd, go, golang, linux, posix, process, processes, procfs, sysctl, system-information, unix, windows
- Language: Go
- Homepage: https://pkg.go.dev/github.com/tklauser/ps
- Size: 92.8 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ps
[![Go Reference](https://pkg.go.dev/badge/github.com/tklauser/ps.svg)][1]
[![GitHub Action Status](https://github.com/tklauser/ps/workflows/Tests/badge.svg)](https://github.com/tklauser/ps/actions?query=workflow%3ATests)Package `ps` provides functionality to find, list and inspect operating system
processes, without using cgo or external binaries.Supported operating systems: Linux, macOS, FreeBSD, NetBSD, OpenBSD,
DragonflyBSD, Solaris/Illumos, WindowsNot all process information may be supported on all platforms. See the
[Go package reference][1] for details.This package is inspired by the [github.com/mitchellh/go-ps][2] and
[github.com/keybase/go-ps][3] packages (the latter being a fork of the former).
However, this package supports more operating systems, provides extended
process information and uses only functionality from the Go standard libary and
the [golang.org/x/sys/unix][4] and [golang.org/x/sys/windows][5] packages to
retrieve information from the operating system, i.e. without using cgo or
shelling out to external programs.[1]: https://pkg.go.dev/github.com/tklauser/ps
[2]: https://github.com/mitchellh/go-ps
[3]: https://github.com/keybase/go-ps
[4]: https://pkg.go.dev/golang.org/x/sys/unix
[5]: https://pkg.go.dev/golang.org/x/sys/windows