View previous topic :: View next topic |
Author |
Message |
m.shirazi at gmail.com Guest
|
Posted: Mon Oct 04, 2021 9:47 am Post subject: [Freeswitch-users] system call inside lua |
|
|
Hi
I can run this query on linux cli:
mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q "SELECT * FROM "dbo"."IVR_REQEST" "
but the same query inside lua script with os.execute does not work.
Itried:
-os.execute(' mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q "SELECT * FROM "dbo"."IVR_REQEST" " ');
-os.execute([[ mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q "SELECT * FROM "dbo"."IVR_REQEST" " ]]);
...
Please help.
Regards
M.Shirazi |
|
Back to top |
|
|
avi at avimarcus.net Guest
|
Posted: Mon Oct 04, 2021 10:16 am Post subject: [Freeswitch-users] system call inside lua |
|
|
As far as I know, these are forked system calls. Freeswitch doesn't wait for a response.
Can you use an odbc handle for a Lua db query?
(I worked around it by having the results written to a file and using an api to read that file.)
On Mon, Oct 4, 2021, 5:27 PM Mehdi Shirazi <m.shirazi@gmail.com (m.shirazi@gmail.com)> wrote:
|
|
Back to top |
|
|
|