popen()? popen2()

Fernando Armenta farmenta at pillardata.com
Thu Oct 16 12:36:24 EDT 2003


Hello,
 
I need some help with popen().  I am calling a bash executable from a python program and it hangs; However if I run the bash program directly from the command line it works.  I don't know if has to do with popen() or should I use popen2().  I appreciate vey much any help that anyone can provide.
 
p = os.popen(extractDir2 + '/tdsextract -m ' + MGMT_IP +  SLAMMER_PATH , "w")
status = p.close()
        if status:
                  print "ERROR:
        else:
 
-F
 
                  
 
 


More information about the Python-list mailing list