luaserver.cpp: change testing example

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7030f309c5
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-10-13 (Mon, 13 Oct 2014)

Origin message was:
------------------
- luaserver.cpp: change testing example

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-10-13 22:11:25 +02:00
parent f99f144721
commit 6478f0f84c

View File

@@ -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>