I'm running XeLaTeX from a shell script and would like to check for exit codes, to see if an error was encountered during processing.
So I'm looking for a list of possible exit codes. I've checked the documentation and googled quite extensively but can't find such a list.
Thanks.
XeLaTex --helpandstrings /path/to/XeLaTex? Try doingXeLaTex .. args_as_needed ... NONEXISTANTFILE ; echo $?to see if it catches that simple error. If that reports an error, then see what error code is returned if you give it a deliberately malformed document. Depending on your need, that may be enough. Good luck! – shellter Mar 13 '12 at 15:26if XLateX ... args .. File file2...; then echo everything OK ; else echo error processing file ; fi` OR xLatext...args... ; rc=$? ; case ${rc} in 0) echo OK ;; * ) echo got error code ${rc} ;; esac` Got to go. Good luck. – shellter Mar 13 '12 at 16:09