Batch Process Report / Log

Started by brijeshb, February 08, 2020, 04:55:16 AM

Previous topic - Next topic

brijeshb

Hi,
I have just started using the exiftool and thank you for creating this wonderful tool.
Have a query ....
When I run a batch process, like copying files to a different location based on createdate, I see the on screen log with errors on some file. This is okay if the number of files are less, but its difficult to scroll up/down if the batch size is bug.
Any way to print a batch report at the end of command execution?

Thanks for the help.
Regards / Brijesh.

Phil Harvey

Hi Brijesh,

Typically, this is done to send the output to a file:

exiftool ARGS > out.txt

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

brijeshb

Thanks Phil.
So, for the following command
Quoteexiftool -v -ext jpg -o . "-Directory<CreateDate" -d F:/photos/%Y/%b/%d -r F:\Users\brijesh\Desktop\album
Will adding a ">log.txt" suffice.

I am looking to see only the error messages, not the complete process output.


Phil Harvey

Try it.  I think the entire output should go to out.txt.  If any errors show up, then they can be redirected separately.

You can use tail -f out.txt from another shell to see the output as it is being written.

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

brijeshb

My bad. I should have mentioned upfront that, I was on a Windows10 PC trying out the batch via command prompt.

Phil Harvey

The "> out.txt" will work the same, but you won't have a "tail" utility.

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