stdout buffering with -script - mode
Posted: 2014-09-22T02:53:31-07:00
I've compiled Magick (IM7) for Windows 8 with standard options and no compile errors.
I'm trying to build a simple wrapper around magick.exe with Python subprocess.POpen and have been running into trouble with buffering of the script output, which I've isolated as being an issue with how magick.exe runs on windows.
Here's the python side of things:
http://stackoverflow.com/questions/2596 ... terminates
Essentially, when magick.exe output is being redirected it is buffering the output. Is there a flag I can set to flush stdout after magick writes to stdout? To use "-script -" effectively I need to be getting the stdout buffer back in a timely manner and can't wait for the buffer to fill.
Or if you have any other ideas I'm open to them.
Regards,
Chris
I'm trying to build a simple wrapper around magick.exe with Python subprocess.POpen and have been running into trouble with buffering of the script output, which I've isolated as being an issue with how magick.exe runs on windows.
Here's the python side of things:
http://stackoverflow.com/questions/2596 ... terminates
Essentially, when magick.exe output is being redirected it is buffering the output. Is there a flag I can set to flush stdout after magick writes to stdout? To use "-script -" effectively I need to be getting the stdout buffer back in a timely manner and can't wait for the buffer to fill.
Or if you have any other ideas I'm open to them.
Regards,
Chris