<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1519242447697_2060"><span></span></div><div></div><div id="yui_3_16_0_ym19_1_1519242447697_2061" dir="ltr"> <span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2730">I'm writing some IVR in Lua and trying to execute some code while the main program continues execution. </span></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2731"> </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2732">I've tried </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2733"> </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2734"> ...</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2735"> -- aws is AWS Command Line Interface</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2736"> io.popen("aws s3 cp " .. s3_src .. " ".. s3_dst)</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2737"> os.execute("aws s3 cp " .. s3_src .. " ".. s3_dst)</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2738"> ... -- program execution continues</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2739"> </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2740"><br id="yui_3_16_0_ym19_1_1519242447697_2741"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2742">Even tried passing it off to a shell script(`s3_upload`)</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2743"><br id="yui_3_16_0_ym19_1_1519242447697_2744"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2745"> os.execute("s3_upload " .. s3_src .." " .. s3_dst)</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2746"> io.popen("s3_upload " .. s3_src .. " ".. s3_dst)</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2747"><br id="yui_3_16_0_ym19_1_1519242447697_2748"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2749">I've tried </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2750"><br id="yui_3_16_0_ym19_1_1519242447697_2751"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2752"> session:execute("bgsystem","<wbr id="yui_3_16_0_ym19_1_1519242447697_2753">s3_upload " .. s3_src .. " ".. s3_dst )<br id="yui_3_16_0_ym19_1_1519242447697_2754"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2755"><br id="yui_3_16_0_ym19_1_1519242447697_2756"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2757"><br id="yui_3_16_0_ym19_1_1519242447697_2758"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2759">If i use the Lua Interactive shell to run these commands independently, it works.</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_2760"><br id="yui_3_16_0_ym19_1_1519242447697_2761"></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" dir="ltr" id="yui_3_16_0_ym19_1_1519242447697_2762">would appreciate any assistance.</div><div class="signature" id="yui_3_16_0_ym19_1_1519242447697_2063"><div id="yui_3_16_0_ym19_1_1519242447697_2062"><strong><span style="font-family:comic sans ms;"><br></span></strong></div></div></div></body></html>