renamed utils.check_cmd to utils.cmd, updated host_cmd to allow for shell commands for output redirection

This commit is contained in:
Blake Harnden 2019-10-21 10:32:42 -07:00
parent 16b7e70c33
commit 78f981463d
15 changed files with 34 additions and 31 deletions

View file

@ -878,7 +878,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
):
if message.flags & MessageFlags.LOCAL.value:
try:
res = utils.check_cmd(command)
res = utils.cmd(command)
status = 0
except CoreCommandError as e:
res = e.stderr