aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LuaSL_main.c')
-rw-r--r--LuaSL/src/LuaSL_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 41fa45a..6daa97d 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -43,7 +43,10 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D
43 } 43 }
44 else if (0 == strcmp(command, "start()")) 44 else if (0 == strcmp(command, "start()"))
45 { 45 {
46 newProc(SID, TRUE); 46 char buf[PATH_MAX];
47
48 sprintf(buf, "%s.lua.out", SID);
49 newProc(buf, TRUE);
47 } 50 }
48 else if (0 == strcmp(command, "exit()")) 51 else if (0 == strcmp(command, "exit()"))
49 { 52 {
@@ -52,11 +55,9 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D
52 } 55 }
53 else 56 else
54 { 57 {
55 char temp[PATH_MAX];
56 const char *status = NULL; 58 const char *status = NULL;
57 59
58 snprintf(temp, sizeof(temp), "%s.events", SID); 60 status = sendToChannel(SID, command, NULL, NULL);
59 status = sendToChannel(temp, command, NULL, NULL);
60 if (status) 61 if (status)
61 PE("Error sending command %s to script %s : %s", command, SID, status); 62 PE("Error sending command %s to script %s : %s", command, SID, status);
62 } 63 }