lua-resty-execvp - FFI wrapper for execvp syscall.
- Name
- Status
- Description
- Synopsis
- Methods
- Installation
- TODO
- Community
- Bugs and Patches
- Author
- Copyright and License
- See Also
This library is considered production ready.
This Lua library is very simple wrapper using FFI to call execvp(const char *path, char *const argv[])
.
This library can replace current process with some other and pass arguments and environment.
http {
init_by_lua_block {
local exec = require 'resty.execvp'
exec('echo', { 'foo', 'bar' }, { SHELL = '/bin/sh' })
}
}
Module itself can be called as a function.
syntax: execvp.split(file, args, env)
Replaces current process with execution of file
passing it list of args
and optionally setting env
variables.
If you are using the OpenResty bundle (http://openresty.org ), then you can use opm to install this package.
opm get 3scale/lua-resty-execvp
Please report bugs or submit patches by
- creating a ticket on the GitHub Issue Tracker,
Michal "mikz" Cichra [email protected], Red Hat Inc.
This module is licensed under the Apache License Version 2.0.
Copyright (C) 2016-2017, Red Hat Inc.
All rights reserved.
See LICENSE for the full license.
- the APIcast API Gateway: https://github.com/3scale/apicast/#readme