Skip to content

A small platform independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process

License

Notifications You must be signed in to change notification settings

marcosbracco/tiny-process-library

 
 

Repository files navigation

tiny-process-library

A small platform independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process.

This library was created for, and is used by the C++ IDE project juCi++.

Features

  • No external dependencies
  • Simple to use
  • Platform independent
  • Read separately from stout and stderr using anonymous functions
  • Write to stdin
  • Kill a running process (SIGTERM is supported on Unix-like systems)
  • Correctly closes file descriptors/handles

Usage

See examples.cpp.

Get, compile and run

Unix-like systems

git clone http://github.com/eidheim/tiny-process-library
cd tiny-process-library
cmake .
make
./examples

Windows with MSYS2 (https://msys2.github.io/)

git clone http://github.com/eidheim/tiny-process-library
cd tiny-process-library
cmake -G"MSYS Makefiles" .
make
./examples

About

A small platform independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.0%
  • CMake 5.0%