When compiling a single ConTeXt file, I can see if the compile was successful by looking at the final lines and by watching it compile.
I have a batch file that compiles thousands of ConTeXt text files. Compilation can take greater than 24 hours. A simple example of this is:
#!/bin/bash for file in 1 2 3 4 5 6 do context $file\.tex done
The problem is, it is encounters an error with
3.tex, I have no way of really checking, unless I spend the whole 24 hours watching the files compile. When there is an error, ConTeXt quits, but the BASH script continues, and continues to run compile. Often a PDF which should be 1,000 pages is instead only 1 page. Othertimes, the file should be 835 pages, but it broke at 563 pages, but created a PDF. So I don't know which PDFs are bad and which compiled successfully.
How can I output a kind of long which tells me which of the files had errors during the compiling?