Permalink
Browse files

Use shell equal true

  • Loading branch information...
1 parent 45fb8e1 commit fdf4e49934d4cb7bcc85bf07f9e688d92763f8a4 Zack Moratto committed Mar 17, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 ctx_worker.py
View
@@ -44,7 +44,8 @@ def process_timeout( p ):
# Helper function to run command
def run_cmd( cmd, time=3600 ):
- proc = subprocess.Popen( cmd )
+ print "Running cmd: %s" % cmd
+ proc = subprocess.Popen( cmd, shell=True )
t = threading.Timer( time, process_timeout, [proc] )
t.start()
(stdoutdata, stderrdata) = proc.communicate()

0 comments on commit fdf4e49

Please sign in to comment.