Page 1 of 1
magick indentify results piped to txt file
Posted: 2016-12-01T13:18:14-07:00
by rmburt
I am using the magick identify {filename} to determine if some jpg are damaged. The results go to the screen. How can I get it to a text file.
I added >> c:\txt.txt but that didn't seem to work.
Re: magick indentify results piped to txt file
Posted: 2016-12-01T13:31:59-07:00
by snibgo
It works fine for me:
Code: Select all
magick identify -verbose rose: >x.txt
Re: magick indentify results piped to txt file
Posted: 2016-12-01T14:17:40-07:00
by rmburt
Actually, if the file is damaged is show as an error, so its magick identify -verbose [filename] > t.txt 2>&1
Re: magick indentify results piped to txt file
Posted: 2016-12-01T14:24:47-07:00
by snibgo
Yes, that will also send stderr to the text file. Do you still have a question?