https://github.com/maxritter/cppnd-system-monitor
A console-based linux process manager, similar to htop
https://github.com/maxritter/cppnd-system-monitor
Last synced: 11 months ago
JSON representation
A console-based linux process manager, similar to htop
- Host: GitHub
- URL: https://github.com/maxritter/cppnd-system-monitor
- Owner: maxritter
- License: mit
- Created: 2019-06-01T20:52:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T18:21:52.000Z (about 7 years ago)
- Last Synced: 2025-07-26T13:38:30.803Z (about 1 year ago)
- Language: C++
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux System Monitor
This project implements a process manager for the Linux operating system, similar to htop. Linux stores information about those processes in a couple of files. The program reads those files, extracts the required values, formats them and uses Ncurses to display them inside the console.

## Usage:
1. Clone repository
```
git clone https://github.com/udacity/CppND-System-Monitor
```
2. Follow along with the lesson and make sure you complete the `ProcessParser` and `Process` classes before attempting to run the project.
3. Install `ncurses` package
```
sudo apt-get install libncurses5-dev libncursesw5-dev
```
4. Compile and run
```
g++ -std="c++17" main.cpp -lncurses
./a.out
```
5. In case of error that looks like the following:
```
root@77e30fca8a01:/home/workspace/CppND-Object-Oriented# ./a.out
*** %n in writable segment detected ***
Aborted (core dumped)
```
just keep trying `./a.out` and it should work eventually!