-- local CmdStr = 'ping google.com' local CmdStr = 'upx.bat' Hnd = io.popen(CmdStr) if Hnd then for Str in Hnd:lines() do io.write(Str, '\n') end Hnd:close() else io.write('Error executing', CmdStr, '\n') end