need {ready} also on stderr in stay_open mode

Started by mahikeulbody, December 15, 2012, 04:21:10 AM

Previous topic - Next topic

mahikeulbody

Python readline function delivers EOF only if the PIPE object is closed, otherwise it blocks my process until a new line is written into the PIPE.
So it would be easier to get stderr output if it has a {ready} mark in the same way as stdout output (in stay_open mode only, of course).

But I am afraid that it could be compatibility issues with existing software using Exiftool.

Michel

Phil Harvey

Hi Michel,

You can use the -echo2 to provide an output on stderr.  With ExifTool 9.09 this should also do the necessary flushing.  But you'll have to do this in a separate -execute for this to come after all other stderr output from the command.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mahikeulbody


Phil Harvey

Great.  I should mention that 9.09 (to be released in about an hour) is only necessary if you are using -q.  Otherwise earlier versions will do.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mahikeulbody

Yes, I just tested echo2 with 9.08 and that run well  :)