From 7030f309c5a8bbe4b370859360bd3f83a44a7e2c Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 13 Oct 2014 22:11:25 +0200 Subject: [PATCH] - 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