mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixed stderror being sent to the console
This commit is contained in:
parent
1736cb352a
commit
64902eb580
1 changed files with 4 additions and 1 deletions
|
|
@ -72,6 +72,9 @@ function os_utils.execWithOutput(c, ret_code_success)
|
|||
return nil
|
||||
end
|
||||
|
||||
-- Avoid errors to be displayed on the console
|
||||
c = c .. " 2>/dev/null"
|
||||
|
||||
if(debug) then tprint(c) end
|
||||
|
||||
if is_freebsd then
|
||||
|
|
@ -89,7 +92,7 @@ function os_utils.execWithOutput(c, ret_code_success)
|
|||
local ret_string = f:read('*a')
|
||||
|
||||
if ret_string ~= nil then
|
||||
if(debug) then tprint(s) end
|
||||
if(debug) then tprint(ret_string) end
|
||||
end
|
||||
|
||||
local rv = { f:close() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue