I have an openwrt router. i want to download file from there using url. how can i do it in lua?
i have another app for downloader which only need url. Thank you.
Lua:
function func.execute(command)
local f = io.popen(command .. ' 2>&1 && echo " $?"')
local output = assert(f:read "*a")
local tempOutput = output
local begin, _, code = output:find " (%d+)\n$"
if begin == nil or begin == '' then
output =...