mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
luaserver.cpp: change testing example
Origin commit data
------------------
Commit: 7030f309c5
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-10-13 (Mon, 13 Oct 2014)
Origin message was:
------------------
- luaserver.cpp: change testing example
This commit is contained in:
@@ -22,13 +22,17 @@
|
||||
For testing try:
|
||||
|
||||
cat <<EOT > /lib/tuxbox/luaplugins/test.lua
|
||||
#!/bin/luaclient
|
||||
|
||||
for i,v in ipairs(arg) do
|
||||
print(tostring(i) .. "\t" .. tostring(v))
|
||||
end
|
||||
return "ok"
|
||||
EOT
|
||||
|
||||
luaclient test a b c d
|
||||
chmod +x /lib/tuxbox/luaplugins/test.lua
|
||||
|
||||
/lib/tuxbox/luaplugins/test.lua a b c d
|
||||
#endif
|
||||
|
||||
#include <config.h>
|
||||
|
Reference in New Issue
Block a user