百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tiny-process-library

> 数据库
开源

一个小型的平台独立库,可让您在 C++ 中轻松创建和停止新进程,以及向 stdin 写入数据并从 stdout 和 stderr 读取数据。

372 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个小型的平台独立库,可让您在 C++ 中轻松创建和停止新进程,以及向 stdin 写入数据并从 stdout 和 stderr 读取数据。

This project has moved to https://gitlab.com/eidheim/tiny-process-library.

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
    • Creating processes using executables is supported on all platforms
    • Creating processes using functions is only possible on Unix-like systems
  • Read separately from stdout 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

bash
git clone http://gitlab.com/eidheim/tiny-process-library
cd tiny-process-library
mkdir build
cd build
cmake ..
make
./examples

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

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++cpplibraryno-dependenciesplatform-independent

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库