File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This a tiny library, intended to be used with OpenResty applications, when
4
4
you need to execute a subprocess (or shell command). It works similar to
5
- * os.execute* and * io.popen* , except that it is completely non-blocking, and
5
+ ** os.execute** and ** io.popen* * , except that it is completely non-blocking, and
6
6
therefore is safe to use even for commands that take long time to complete.
7
7
8
8
The library depends on a daemon component that you would need to run
9
- on your webserver - sockproc. The basic idea is that the shell library
9
+ on your webserver - ** sockproc** . The basic idea is that the shell library
10
10
connects to the unix domain socket of sockproc daemon, sends the command
11
11
along with any input data that the child program is expecting, and then
12
12
reads back the exit code, output stream data, and error stream data of
@@ -25,7 +25,7 @@ Make sure to have sockproc running and listenning on a UNIX domain socket:
25
25
26
26
In your OpenResty config:
27
27
28
- location /test_me {
28
+ location /test {
29
29
content_by_lua '
30
30
local shell = require("resty.shell")
31
31
local status, out, err = shell.execute("uname -a")
You can’t perform that action at this time.
0 commit comments