# How to disable the prompt on error?

When pdflatex can't compile a file, it drops me to a prompt. I've never used it and always try to get away from there as quickly as possible, usually generating a q.log file in the process.

Is there any way to avoid this behavior and let pdflatex drop back to command-line on error?

-
Perhaps the answers to this question: Ignore compile errors will help. –  Alan Munn Mar 13 '11 at 17:01
@Alan: Thanks. -halt-on-error (your link) and -interaction=nonstopmode (Martin Scharrer) seems to be what I'm looking for. –  Tim N Mar 13 '11 at 17:05
Use the -interaction=nonstopmode command line argument or the \nonstopmode macro to disable stopping on errors.
-interaction <mode> Starts the so-called interaction mode, which can be specified as batchmode, nonstopmode, scrollmode or errorstopmode. The meaning of these options is the same as for the TeX commands of the same name. The reason why you can also say \batchmode as first line in your document. Then you do not need to modify the prompt in a GUI, if you use one.