popen solution
This commit is contained in:
@@ -9,5 +9,9 @@ server {
|
|||||||
location /api/ngx/test/co {
|
location /api/ngx/test/co {
|
||||||
content_by_lua_file $resty_loc/nginx/scripts/tests/co.lua;
|
content_by_lua_file $resty_loc/nginx/scripts/tests/co.lua;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /api/ngx/test/popen {
|
||||||
|
content_by_lua_file $resty_loc/nginx/scripts/tests/popen.lua;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
io.popen("sleep 3; echo hello>/tmp/foo.txt")
|
||||||
|
|
||||||
|
ngx.say("main")
|
||||||
|
|
||||||
Reference in New Issue
Block a user