Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用命令行参数执行一个sys.exe函数。我的代码是
var1 = "myname" var2 = "address" function btn.write() luci.sys.exec("/bin/register $var1 $var2") end
我知道这是错的。如何将参数传递给sys.exe函数Luci OpenWrt?有什么帮助吗?谢谢 。
sys.exe
Luci OpenWrt
使用简单的字符串连接:
luci.sys.exec("/bin/register" .. $var1 .. " " .. $var2 .. " ")