Identify from command line - need help
Posted: 2012-11-01T07:13:05-07:00
Hello,
I'm trying to detect corrupted JPEG files. I'm running the identify utility using the command line. The option is -verbose. Everything works well: I actually receive
identify.exe: Corrupt JPEG data: premature end of data segment ....
But, I can't pick up this string for the further processing. Standard redirection to text file
identify -verbose file.jpeg > result.txt
prints into a file the whole verbose information, except the error. The error is printed out only to command line.
So if I want to run a batch processing of 100 files and detect how many files were corrupted, I can't do it. Unless I'm missing something...
Any suggestions?
I'm trying to detect corrupted JPEG files. I'm running the identify utility using the command line. The option is -verbose. Everything works well: I actually receive
identify.exe: Corrupt JPEG data: premature end of data segment ....
But, I can't pick up this string for the further processing. Standard redirection to text file
identify -verbose file.jpeg > result.txt
prints into a file the whole verbose information, except the error. The error is printed out only to command line.
So if I want to run a batch processing of 100 files and detect how many files were corrupted, I can't do it. Unless I'm missing something...
Any suggestions?