diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index ad63de2..850b1bc 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -116,7 +116,8 @@ class Util: @staticmethod def execute(command): - return subprocess.Popen(command, shell=True) + p = subprocess.Popen(command, shell=True) + return p.wait() @staticmethod def execute_script(script_path, parameters=None): @@ -172,4 +173,4 @@ class Util: gid = st.st_uid return grp.getgrgid(gid)[0] except: - raise + raise \ No newline at end of file