mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
- luaserver.cpp: change testing example
This commit is contained in:
@@ -22,13 +22,17 @@
|
|||||||
For testing try:
|
For testing try:
|
||||||
|
|
||||||
cat <<EOT > /lib/tuxbox/luaplugins/test.lua
|
cat <<EOT > /lib/tuxbox/luaplugins/test.lua
|
||||||
|
#!/bin/luaclient
|
||||||
|
|
||||||
for i,v in ipairs(arg) do
|
for i,v in ipairs(arg) do
|
||||||
print(tostring(i) .. "\t" .. tostring(v))
|
print(tostring(i) .. "\t" .. tostring(v))
|
||||||
end
|
end
|
||||||
return "ok"
|
return "ok"
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
luaclient test a b c d
|
chmod +x /lib/tuxbox/luaplugins/test.lua
|
||||||
|
|
||||||
|
/lib/tuxbox/luaplugins/test.lua a b c d
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
Reference in New Issue
Block a user