[Freeswitch-users] How to run linux shell command from within

Brian West brian at freeswitch.org
Tue Mar 1 15:23:54 MSK 2011


$(system()}

or

api = freeswitch.API();
something = api:executeString("system ls /");


On Mar 1, 2011, at 2:23 AM, Dmitry Saratsky wrote:

> Thanks Christopher,
> 
> 
> I already have found why this was not working for me (it was quotes wrong 
> usage).
> 
> However I already have finished with my script with LUA’s (not FS’s) 
> function: os.execute(execute_command); that also runs shell commands, but 
> dose it directly from within LUA, but not through FreeSWITCH’s API.
> 
> 
> Do you see any problems with that?
> 
> 
> Thanks,
> 
> Dmitry.




More information about the FreeSWITCH-users mailing list