[Freeswitch-users] Running sox from within lua

Alex Lake alex at digitalmail.com
Tue Feb 19 20:07:53 MSK 2013


Actually, using os.execute even with totally innocuous commands seems to 
fail.
Maybe io.popen would be more appropriate? Freeswitch-specific 
documentation/examples for this seem somewhat thin on the ground, though.
In particular, dealing with the return value.
> 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
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2238 / Virus Database: 2639/5614 - Release Date: 02/18/13
>
>




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