From a5482c3ef87f9db6ac02935ffd955f00003b44ff Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 13 Oct 2014 22:11:25 +0200 Subject: [PATCH] luaserver.cpp: change testing example Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/7030f309c5a8bbe4b370859360bd3f83a44a7e2c Author: vanhofen Date: 2014-10-13 (Mon, 13 Oct 2014) Origin message was: ------------------ - luaserver.cpp: change testing example --- src/system/luaserver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/system/luaserver.cpp b/src/system/luaserver.cpp index 61ed02eb4..1c346ef78 100644 --- a/src/system/luaserver.cpp +++ b/src/system/luaserver.cpp @@ -22,13 +22,17 @@ For testing try: cat < /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