From: Lucia Guevgeozian Odizzio Date: Thu, 30 Jan 2014 14:50:02 +0000 (+0100) Subject: Change for lexec func X-Git-Tag: nepi-3.1.0~136^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=02ff7254db0b25f0e09a988132fe1de22333f8d3;p=nepi.git Change for lexec func --- diff --git a/src/nepi/util/execfuncs.py b/src/nepi/util/execfuncs.py index e09d4905..eaadf509 100644 --- a/src/nepi/util/execfuncs.py +++ b/src/nepi/util/execfuncs.py @@ -41,10 +41,10 @@ def lexec(command, command = "su %s ; %s " % (user, command) - p = subprocess.Popen(command, shell=True, + p = subprocess.Popen(command, stdout = subprocess.PIPE, - stderr = subprocess.PIPE) - #stdin = stdin) + stderr = subprocess.PIPE, + stdin = stdin) out, err = p.communicate() return (out, err)