ChildProcess C++ library v1.0.0

Simple C++ library to run external child process from your application

Overview

ChildProcess C++ library provides running additional program under new process. The library runs child process and returns control from you. The library doesn't show child process output, just runs. The library provides simple easy to use interface:

class ChildProcess
{
public:
    /// Create a child process and run given command with provided arguments.
    bool run(std::string command, std::string params = "");
    /// Close process.
    void close();
};

How to use

Below is a simple example how to run command:

#include <iostream>
#include "ChildProcess.h"

int main(void)
{
    // Create a process instance.
    cr::utils::ChildProcess process;

    // Run command.
    if (process.run("ls", "-l -a /dev")) 
        std::cout << "Child process executed successfully." << std::endl;
    else 
        std::cout << "Failed to start child process." << std::endl;

    return 1;
}

Downloads

ChildProcess C++ library programmer’s manual: DOWNLOAD

Price and Terms

The ChildProcess C++ library is supplied under a license in source code. Library pricing is available upon request info@constantrobotics.com