What lua feature can be used as pexpect in python or tcl expect?
snippet in lua
What lua feature can be used as pexpect in python or tcl expect?
user6238
for line in io.popen('/some/other/process'):lines() do
-- previous line will block until output is available
if line:match '^some regex' then
-- match found! do some stuff
end
end -- EOF reached