2
0

single_command.lua 240 B

12345678910
  1. #!/usr/local/bin/lua
  2. require("ESL")
  3. local command = arg[1];
  4. table.remove(arg, 1);
  5. local args = table.concat(arg, " ");
  6. local con = ESL.ESLconnection("localhost", "8021", "ClueCon");
  7. local e = con:api(command, args);
  8. print(e:getBody());