- Description: Commander is a meticulously crafted process management library, designed with an intuitive and user-friendly approach. I have personally developed this library for my projects, harnessing the power of Qt6. Commander provides developers with efficient and effective process management capabilities, enabling seamless control and handling of processes within their applications.
- Technologies used: C++, Qt6
Commander simplifies process management tasks. You can issue commands to the shell as child processes. Here are the key features of Commander:
- You can run commands periodically.
- The software waits for the command to finish, retrieves the exit code, and reads the stdout and stderr outputs.
-
This concept is inspired by the voidrealm Qt6 Core Udemy Tutorial.
-
I have tested it Qt version 6.5
-
Commander
: This is the base class that provides essential process functionalities. It is used within theCommanderManager
. It includes a periodic call mechanism that executes if the specified time interval is greater than 0. -
CommanderManager
: This class creates instances ofCommander
and executes them concurrently usingQtConcurrent
. With this approach, you don't need to worry about waiting for the processes to complete.
- QtCore
- QtConcurrent
CommanderManager m_commanderManager;
QStringList arguments;
arguments << "-l" << "-a" << "-h";
m_commanderManager.process(arguments, "ls", "\n", 10'000);