Modified: freeswitch/trunk/libs/esl/lua/Makefile (16649 => 16650)
--- freeswitch/trunk/libs/esl/lua/Makefile 2010-02-15 21:24:20 UTC (rev 16649)
+++ freeswitch/trunk/libs/esl/lua/Makefile 2010-02-15 21:25:49 UTC (rev 16650)
@@ -1,5 +1,5 @@
LOCAL_CFLAGS=
-LOCAL_LDFLAGS=-llua
+LOCAL_LDFLAGS=-llua -lpthread
WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all: ESL.so
Added: freeswitch/trunk/libs/esl/lua/single_command.lua (0 => 16650)
--- freeswitch/trunk/libs/esl/lua/single_command.lua (rev 0)
+++ freeswitch/trunk/libs/esl/lua/single_command.lua 2010-02-15 21:25:49 UTC (rev 16650)
@@ -0,0 +1,10 @@
+#!/usr/local/bin/lua
+require("ESL")
+
+local command = arg[1];
+table.remove(arg, 1);
+local args = table.concat(arg, " ");
+
+local con = ESL.ESLconnection("localhost", "8021", "ClueCon");
+local e = con:api(command, args);
+print(e:getBody());
Property changes on: freeswitch/trunk/libs/esl/lua/single_command.lua
___________________________________________________________________
Name: svn:executable
+ *