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
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
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
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
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(
>
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",
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
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
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