Change for lexec func
authorLucia Guevgeozian Odizzio <lucia.guevgeozian_odizzio@inria.fr>
Thu, 30 Jan 2014 14:50:02 +0000 (15:50 +0100)
committerLucia Guevgeozian Odizzio <lucia.guevgeozian_odizzio@inria.fr>
Thu, 30 Jan 2014 14:50:02 +0000 (15:50 +0100)
src/nepi/util/execfuncs.py

index e09d490..eaadf50 100644 (file)
@@ -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)