ExifTool Forum

ExifTool => Developers => Topic started by: mahikeulbody on December 15, 2012, 04:21:10 AM

Title: need {ready} also on stderr in stay_open mode
Post by: mahikeulbody on December 15, 2012, 04:21:10 AM
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
Title: Re: need {ready} also on stderr in stay_open mode
Post by: Phil Harvey on December 15, 2012, 07:24:56 AM
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
Title: Re: need {ready} also on stderr in stay_open mode
Post by: mahikeulbody on December 15, 2012, 07:32:40 AM
I missed -echo2... Thanks !
Title: Re: need {ready} also on stderr in stay_open mode
Post by: Phil Harvey on December 15, 2012, 07:38:42 AM
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
Title: Re: need {ready} also on stderr in stay_open mode
Post by: mahikeulbody on December 15, 2012, 09:13:44 AM
Yes, I just tested echo2 with 9.08 and that run well  :)