<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_ym19_1_1519242447697_6502"><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_6503">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_6504">   </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_6505">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_6506">  </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_6507">    ...</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_6508">    -- 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_6509">    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_6510">    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_6511">    ... -- 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_6512">    </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_6513"><br id="yui_3_16_0_ym19_1_1519242447697_6514"></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_6515">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_6516"><br id="yui_3_16_0_ym19_1_1519242447697_6517"></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_6518">    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_6519">    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_6520"><br id="yui_3_16_0_ym19_1_1519242447697_6521"></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_6522">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_6523"><br id="yui_3_16_0_ym19_1_1519242447697_6524"></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_6525"> session:execute("bgsystem"," s3_upload " ..  s3_src .. " ".. s3_dst )<br id="yui_3_16_0_ym19_1_1519242447697_6526"></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_6527"><br id="yui_3_16_0_ym19_1_1519242447697_6528"></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_6529"><br id="yui_3_16_0_ym19_1_1519242447697_6530"></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_6531">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_6532"><br id="yui_3_16_0_ym19_1_1519242447697_6533"></div><div id="yui_3_16_0_ym19_1_1519242447697_6421"><div id="yui_3_16_0_ym19_1_1519242447697_6534"></div></div><div dir="ltr" style="text-align: start; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" id="yui_3_16_0_ym19_1_1519242447697_6535">would appreciate any assistance.</div><div></div><div id="yui_3_16_0_ym19_1_1519242447697_6420"> </div><div class="signature"><div><strong><span style="font-family:comic sans ms;"><br></span></strong></div></div></div></body></html>