diff options
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/lua/command-test.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TOOLS/lua/command-test.lua b/TOOLS/lua/command-test.lua index 5fb8c7b0d7..94a91c2f57 100644 --- a/TOOLS/lua/command-test.lua +++ b/TOOLS/lua/command-test.lua @@ -50,4 +50,9 @@ mp.observe_property("vo-configured", "bool", function(_, v) function(res, val, err) print("done err scr.: " .. join(" ", {res, val, err})) end) + + mp.command_native_async({name = "subprocess", args = {"sh", "-c", "echo hi && sleep 10s"}, capture_stdout = true}, + function(res, val, err) + print("done subprocess: " .. join(" ", {res, val, err})) + end) end) |