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. -- http://mail.python.org/mailma

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 she

Re: os.system vs subprocess

2009-06-21 Thread Lawrence D'Oliveiro
In message , 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

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 t

Re: os.system vs subprocess

2009-06-21 Thread Nate
On Jun 21, 3:49 pm, Christian Heimes 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: > 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, 2:12 pm, Chris Rebert wrote: > On Sun, Jun 21, 2009 at 10:12 AM, Nate 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

Re: os.system vs subprocess

2009-06-21 Thread Chris Rebert
On Sun, Jun 21, 2009 at 10:12 AM, Nate 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 gmapcreator.jar -dfile=cens

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 ou