A Python script to export details of all background processes running on your system to a CSV file. This tool allows you to sort processes based on various attributes, such as name, PID, user, or status.
- Exports all running background processes to a CSV file.
- User-selectable sorting options:
- Alphabetical (Process Name)
- By PID
- By User
- By Status
- Saves the output file to the Desktop for easy access.
- Python 3.6 or higher
- The
psutil
library for retrieving process details
- Clone this repository:
git clone https://github.com/hdrapin/background_processes_exporter.git cd background_processes_exporter
pip install psutil
python export_background_processes.py
Choose the sorting type for the processes:
- Alphabetical (Name)
- By PID
- By User
- By Status Enter the number corresponding to your choice:
The script will generate a CSV file named background_processes.csv on your Desktop.
Feel free to open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.