Skip to main content

A process management tool that lists or kills processes by name and port.

Project description

procboss

Use pb to list or kill processes by name or port in Unix-like environments.

screenshot

Features

  • List processes by name and/or port number: pb list -n node
  • Kill processes by name and/or port number: pb kill -p 3001
  • Option to run commands with elevated privileges: pb list --all
  • Automatically elevates kill permissions when necessary

Installation

Install procboss from PyPI using pip:

pip install procboss

Usage

List Processes

To list processes, use the list command. You can filter processes by name or port number. To list all processes with elevated privileges, use the --all flag.

pb list [options]

Options

  • -n, --name NAME: Filter by process name (optional).
  • -p, --port PORT: Filter by port number (optional).
  • --all: List all processes with sudo (optional).

Examples

List all processes:

pb list

List processes by name:

pb list -n <process_name>

List processes by port:

pb list -p <port_number>

List all processes with elevated privileges:

pb list --all

Kill Processes

To kill processes, use the kill command. You must specify the process name, and you can optionally filter by port number. To kill all matching processes with elevated privileges, use the --all flag.

pb kill [options]

Options

  • -n, --name NAME: Required. Specify the process name to kill.
  • -p, --port PORT: Filter by port number (optional).
  • --all: Kill all matching processes with sudo (optional).

Examples

Kill processes by name:

pb kill -n <process_name>

Kill processes by name and port:

pb kill -n <process_name> -p <port_number>

Kill all matching processes with elevated privileges:

pb kill -n <process_name> --all

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

This tool uses lsof and ps commands to gather process information and tabulate to format the output.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. Keep it simple.

Contact

For any questions or issues, please open an issue on the GitHub repository.


Note: Running commands with --all may prompt for your password depending on your system configuration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

procboss-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

procboss-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file procboss-0.3.0.tar.gz.

File metadata

  • Download URL: procboss-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for procboss-0.3.0.tar.gz
Algorithm Hash digest
SHA256 833fe42dd0410d1dede0ec177e36122c96786130753b59418173e6076a150e30
MD5 961b5ed17795fcce4becbbfb2ab79f31
BLAKE2b-256 73b6fa7dfe2591d77478ac7e4eb36de642541d756be99d32c63680e6ffdc8a85

See more details on using hashes here.

File details

Details for the file procboss-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: procboss-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for procboss-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86c1bec0b715d8db1912745c8f7e46d329a9d954e5ab040c05b540717c7ff238
MD5 f53c4a77b985996984f9b826d2d42b36
BLAKE2b-256 38947ed33d5571cad9726f6ced225d8d0724f238a782eeb1c4bf4ca01108695e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page