[Freeswitch-users] How do I execute shell command from Lua?

JP jaykris at gmail.com
Tue Feb 26 00:57:10 MSK 2013

I entered this into my Lua script

local f = io.popen("pwd") -- runs command
local o = f:read("*a") -- read output of command

and executed the script from fs_cli. This only caused the fs_cli to become

Is there something I am doing wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130225/ce72f3bb/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list