I can not display the value of the string in conky, tell me where the errors are.
my function call:
${lua conky_func}
conky.config section:
lua_load = '/home/user/.conky/function.lua',
result:
conky: llua_getstring: function conky_func didn't return a string, result discarded
$ lua
Lua 5.3.6 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> function conky_func()
result = os.execute("ps aux | awk '{sum+=$6} END {print sum/1024}'; exit")
return result
end
> conky_func()
4902.65
true
> ^C
Where are the errors, please help.