Re: os.system vs subprocess

2009-06-26 Thread Nate
I ended up going with this: http://code.activestate.com/recipes/440554/ seems to feed me new lines of output atleast before the subprocess finishes, with some adjustment of the time delays. I'll guess I'll just be packing winpy into the installer. Or something. --

Re: os.system vs subprocess

2009-06-22 Thread Tim Golden
Nate wrote: Thanks for your response. Related to this talk about shells, maybe you could point me towards a resource where I could read about how windows commands are processed w/w/o shells? I guess I assumed all subprocess commands were intepreted by the same thing, cmd.exe., or perhaps the

os.system vs subprocess

2009-06-21 Thread Nate
I get different behavior with os.system and subprocess (no surprise there I guess), but I was hoping for some clarification, namely why. If I type this directly into the command window: java -Xms128M -Xmx512M -jar gmapcreator.jar -dfile=censettings.xml mapoutput.txt mapoutput.txt stores the

Re: os.system vs subprocess

2009-06-21 Thread Chris Rebert
On Sun, Jun 21, 2009 at 10:12 AM, Natewalton.nathan...@gmail.com wrote: I get different behavior with os.system and subprocess (no surprise there I guess), but I was hoping for some clarification, namely why. If I type this directly into the command window: java -Xms128M -Xmx512M -jar

Re: os.system vs subprocess

2009-06-21 Thread Nate
On Jun 21, 2:12 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Jun 21, 2009 at 10:12 AM, Natewalton.nathan...@gmail.com wrote: I get different behavior with os.system and subprocess (no surprise there I guess), but I was hoping for some clarification, namely why. If I type this directly

Re: os.system vs subprocess

2009-06-21 Thread Christian Heimes
Nate wrote: gmapcreator = subprocess.Popen(java -Xms128M -Xmx512M -jar gmapcreator.jar -dfile=censettings.xml, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) Try this: gmapcreator = subprocess.Popen( [java, -Xms128M, -Xmx512M, -jar, gmapcreator.jar,

Re: os.system vs subprocess

2009-06-21 Thread Nate
On Jun 21, 3:49 pm, Christian Heimes li...@cheimes.de wrote: Nate wrote: gmapcreator = subprocess.Popen(java -Xms128M -Xmx512M -jar gmapcreator.jar -dfile=censettings.xml, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) Try this: gmapcreator = subprocess.Popen(  

Re: os.system vs subprocess

2009-06-21 Thread Christian Heimes
Nate wrote: Thanks for your response. Related to this talk about shells, maybe you could point me towards a resource where I could read about how windows commands are processed w/w/o shells? I guess I assumed all subprocess commands were intepreted by the same thing, cmd.exe., or perhaps the

Re: os.system vs subprocess

2009-06-21 Thread Lawrence D'Oliveiro
In message mailman.1925.1245613790.8015.python-l...@python.org, Christian Heimes wrote: The subprocess doesn't use the shell ... It can if you tell it to. -- http://mail.python.org/mailman/listinfo/python-list