Main Menu

catching errors

Started by evilaro, February 07, 2012, 11:43:20 AM

Previous topic - Next topic

evilaro


Hello:

I am doing this process

exiftool.exe -Keywords="Peter"  -Keywords="John"  -Keywords="Susi"    myimage.jpg   > errors.txt

Normally I see on the cmd several error (they go to fast) but on the errors.txt I only get

1 image files updated

I would like to get all errors, and if possible with the image name that creates the error.

It is possible?

Thanks

Emilio
www.evilfoto.eu
*************

Phil Harvey

Hi Emilio,

Try this:

exiftool -Keywords="Peter" -Keywords="John" -Keywords="Susi" myimage.jpg 2>errors.txt

Errors go to stderr, which is filehandle number 2, and can be redirected separately from stdout.  You can redirect both to different files:

exiftool ... >out.txt 2>errors.txt

or both to the same file:

exiftool ... >combined.txt 2>&1

- 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 ($).

evilaro

Phil:

Works great... thaks

Emilio
***********

Quote from: Phil Harvey on February 07, 2012, 12:05:39 PM
Hi Emilio,

Try this:

exiftool -Keywords="Peter" -Keywords="John" -Keywords="Susi" myimage.jpg 2>errors.txt

Errors go to stderr, which is filehandle number 2, and can be redirected separately from stdout.  You can redirect both to different files:

exiftool ... >out.txt 2>errors.txt

or both to the same file:

exiftool ... >combined.txt 2>&1

- Phil
www.evilfoto.eu
*************