From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tml <tarantool-patches@dev.tarantool.org>
Subject: [Tarantool-patches] [PATCH v2 0/5] popen: Add ability to run external process
Date: Tue, 10 Dec 2019 12:48:50 +0300 [thread overview]
Message-ID: <20191210094855.24953-1-gorcunov@gmail.com> (raw)
In this series we provide a way to execute external binaries
from inside of Lua scripts, control children process and
communicate with their stdin/out/err streams.
In v2 I tried to stabilize api a bit still i don't like
current Lua api with a passion, thus please take a look
if we can improve here something. I'm far from being
Lua code profi so help would be really appreciated.
Probably the best way to start read this series is
the last patch where real examples of usage are
present.
All patches are sitting in branch gorcunov/gh-4031-popen-2
Cyrill Gorcunov (5):
popen: Introduce a backend engine
lua/fio: Add lbox_fio_push_error as a separate helper
popen/fio: Merge popen engine into fio internal module
popen/fio: Add ability to run external programs
test: Add app/popen test
src/lib/core/CMakeLists.txt | 1 +
src/lib/core/coio_file.c | 115 ++++
src/lib/core/coio_file.h | 8 +
src/lib/core/popen.c | 1168 +++++++++++++++++++++++++++++++++++
src/lib/core/popen.h | 187 ++++++
src/lua/fio.c | 346 ++++++++++-
src/lua/fio.lua | 578 +++++++++++++++++
src/main.cc | 4 +
test/app/popen.result | 179 ++++++
test/app/popen.test.lua | 68 ++
10 files changed, 2650 insertions(+), 4 deletions(-)
create mode 100644 src/lib/core/popen.c
create mode 100644 src/lib/core/popen.h
create mode 100644 test/app/popen.result
create mode 100644 test/app/popen.test.lua
--
2.20.1
next reply other threads:[~2019-12-10 9:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-10 9:48 Cyrill Gorcunov [this message]
2019-12-10 9:48 ` [Tarantool-patches] [PATCH v2 1/5] popen: Introduce a backend engine Cyrill Gorcunov
2019-12-26 4:33 ` Konstantin Osipov
2019-12-26 7:04 ` Cyrill Gorcunov
2019-12-26 7:12 ` Konstantin Osipov
2019-12-10 9:48 ` [Tarantool-patches] [PATCH v2 2/5] lua/fio: Add lbox_fio_push_error as a separate helper Cyrill Gorcunov
2019-12-10 9:48 ` [Tarantool-patches] [PATCH v2 3/5] popen/fio: Merge popen engine into fio internal module Cyrill Gorcunov
2019-12-10 9:48 ` [Tarantool-patches] [PATCH v2 4/5] popen/fio: Add ability to run external programs Cyrill Gorcunov
2019-12-10 9:48 ` [Tarantool-patches] [PATCH v2 5/5] test: Add app/popen test Cyrill Gorcunov
2019-12-11 9:29 ` [Tarantool-patches] [PATCH v2 0/5] popen: Add ability to run external process Cyrill Gorcunov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191210094855.24953-1-gorcunov@gmail.com \
--to=gorcunov@gmail.com \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v2 0/5] popen: Add ability to run external process' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox