From 4ba508fd64d5e154064298b1486e27f8e8a170f5 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 26 Dec 2012 21:15:55 +0000 Subject: Replace io.popen with modelfunctions.run_executable --- freeswitch-model.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'freeswitch-model.lua') diff --git a/freeswitch-model.lua b/freeswitch-model.lua index 57251c7..e946314 100644 --- a/freeswitch-model.lua +++ b/freeswitch-model.lua @@ -42,9 +42,7 @@ function getreloadxml() end function reload_xml(self, relo) - local f = io.popen(path.."fs_cli -x reloadxml 2>&1") - relo.descr = f:read("*a") - f:close() + relo.descr, relo.errtxt = modelfunctions.run_executable({"fs_cli", "-x", "reloadxml"}, true) return relo end -- cgit v1.2.3