[Freeswitch-users] Running sox from within lua
Michael Collins
msc at freeswitch.org
Tue Feb 19 19:47:17 MSK 2013
Can you run a simple Lua script and try something like this:
res=os.execute('/usr/bin/sox --version')
Just to make absolutely certain that you are able to call sox from within a
Lua script.
-MC
On Tue, Feb 19, 2013 at 8:21 AM, Alex Lake <alex at digitalmail.com> wrote:
> Having a spot of bother with this bit of lua:
>
> result = os.execute(string.format([[sox --norm %s %s.new]],
> file_to_normalise, file_to_normalise))
>
> It's returning -1. I believe freeswitch is running as root and that the
> sox file is in that location and is runnable.
>
> Any ideas?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130219/ca4b6f43/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list