Skip to content

A Lua module written in C that allows you to create child processes and communicate with them. The API is based on Python's subprocess module

Notifications You must be signed in to change notification settings

huakim/lua-subprocess

 
 

Repository files navigation

🟩 lua5.4-subprocess

Thanks to @huakim for commit ahead to port lua-subprocess to openSUSE

Tested on openSUSE Tumbleweed

Get package on system

zypper addrepo -k https://download.opensuse.org/repositories/home:huakim:matrix/openSUSE_Tumbleweed/home:huakim:matrix.repo
zypper refresh
zypper install lua-subprocess

Enjoy !

Thanks to @xlq for commit ahead to port lua-subprocess in Lua 5.3

Tested on Alpine Linux with musl

Get package on system

 $: apk add --update musl musl-dev pkgconfig asciidoc lua5.4 lua5.4-dev lua5.4-libs
  • Set PATH for pkgconfig
$: export PKG_CONFIG_PATH=/usr/lib/pkgconfig
  • Set git clone lua5.4-subprocess
$: git clone https://github.com/huakim/lua-subprocess.git lua5.4-subprocess
  • Build it !
$: make
  • Copy to Lua libs /usr/lib/lua/5.4 !
$:  cp git/lua-subprocess/subprocess.so /usr/lib/lua/5.4

Enjoy !

🟨 lua5.3-subprocess

Tested on Alpine Linux with musl

Get package on system

 $: apk add --update musl musl-dev pkgconfig asciidoc lua5.3 lua5.3-dev lua5.3-libs
  • Set PATH for pkgconfig
$: export PKG_CONFIG_PATH=/usr/lib/pkgconfig
  • Set git clone lua5.4-subprocess
$: git clone https://github.com/huakim/lua-subprocess.git lua5.3-subprocess
  • Build it !
$: make
  • Copy to Lua libs /usr/lib/lua/5.3 !
$:  cp git/lua-subprocess/subprocess.so /usr/lib/lua/5.3

Enjoy !

🤝 Credits

Joshua Phillips - https://github.com/xlq/lua-subprocess - To commit ahead in past years, for fix all code to port Lua 5.3
Ted Trask - https://github.com/tdtrask/lua-subprocess - For alpine apk pkg
Trinity Labs - https://github.com/trinity-labs/lua5.4-subprocess - For README.md and for fix all code to port Lua 5.4
huakim - https://github.com/huakim/lua-subprocess - For fixing bug 'no luaL_optlong found' and porting to openSUSE https://build.opensuse.org/package/show/home:huakim:matrix/lua-subprocess

About

A Lua module written in C that allows you to create child processes and communicate with them. The API is based on Python's subprocess module

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 64.1%
  • HTML 32.5%
  • Makefile 1.6%
  • Python 1.3%
  • Shell 0.5%