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, but is not yet as complete, but port since 2000

Notifications You must be signed in to change notification settings

trinity-labs/lua5.4-subprocess

 
 

Repository files navigation

🟩 lua5.4-subprocess

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 gcc musl-dev make pkgconfig asciidoc lua5.4 lua5.4-dev lua5.4-md5 lua5.4-libs haserl-lua5.4
  • Set PATH for pkgconfig
$: export PKG_CONFIG_PATH=/usr/lib/pkgconfig
  • Set git clone lua5.4-subprocess
$: git clone https://github.com/trinity-labs/lua5.4-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 gcc musl-dev make pkgconfig asciidoc lua5.3 lua5.3-dev lua5.3-md5 lua5.3-libs haserl-lua5.3
  • Set PATH for pkgconfig
$: export PKG_CONFIG_PATH=/usr/lib/pkgconfig
  • Set git clone lua5.4-subprocess
$: git clone https://github.com/trinity-labs/lua5.4-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

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, but is not yet as complete, but port since 2000

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 63.9%
  • HTML 34.0%
  • Makefile 1.5%
  • Lua 0.6%