ChildProcess C++ lib. Simple way to run external process from your app

€10.00

ChildProcess C++ library version 1.0.1 provides interface to run external process from your application in Linux.

LICENSE: We sell source code of this library as is, without future updates and technical support according to perpetual non-exclusive royalty-free license. You pay once and can use this library in your software and hardware products without limits. Please read the license agreement before purchasing: DOWNLOAD LICENSE. You can buy technical support service for this product.

Add To Cart
Technical support service
Options:

Purchase options

You can by this software online by card or you can buy the software by bank transfer. Bank transfer available only for companies. To buy software by bank transfer please send us request to info@constantrobotics.com. Also, you can buy technical support service for this product.

Downloads

Programmer’s manual: DOWNLOAD

Overview

ChildProcess C++ library provides interface to run external process from your application in Linux. The library runs external process (child process) and returns control to you. The library doesn't show child process output, just runs. Also the library provides function to stop child process. The library doesn't have third-party dependencies and built with C++17 standard.

Simple interface

class ChildProcess
{
public:

    /// Get library version.
    static std::string getVersion();

    /// Create a child process and run given command.
    bool run(std::string command, std::string params = "");

    /// Close child process.
    void close();
};

Simple example

#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include "ChildProcess.h"

int main(void)
{
    std::cout << "ChildProcess v" <<
    cr::utils::ChildProcess::getVersion() << " example" <<
    std::endl << std::endl;

    std::string command = "";
    std::cout << "Enter command: ";
    std::cin >> command;

    std::string arguments = "";
    std::cout << "Enter arguments: ";
    std::cin >> arguments;

    // Run child process.
    cr::utils::ChildProcess process;
    if (!process.run(command, arguments))
        return 0;

    // Wait 2 seconds for example.
    std::this_thread::sleep_for(std::chrono::seconds(2));

    // Close child process.
    process.close();

    return 1;
}
VideoRecorderOpenCv C++ lib. Simple video recorder with memory control
€50.00
FormatConverterOpenCv C++ lib. Pixel format converter with lot of formats support
€20.00
License C++ lib. Easy way to add licensing in your application
€250.00