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.1.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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: procboss-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d648d08ceb0868432f5d57b362119e7f1fd6d4fb8ac116f3138176373eb51e7c
MD5 4b5c5ce225933e148785234f4f161401
BLAKE2b-256 6e9f5d6aa087fe6fe218c9d4f7583ae15b543d40f6152b8a0131aa5b51287a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: procboss-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d0f9df0ca47906096f36ea5df18868c2c763aa06fe0d3c93b212b2e29ae5b92
MD5 016180a9dd5a65ba329369b1d9c6b2bb
BLAKE2b-256 8329c5c78b630d45adaabad833c593a5d262de83099321ecc2b52af5a738e54c

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