How to run linux shell command from within
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.
$(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.
participants (2)
-
Brian West
-
Dmitry Saratsky