I am executing pdflatex from php script and it gives me very long list of log entries mixed with errors e.g
system('/usr/texbin/pdflatex -output-directory=./temp/tex '.$tex_output . " 1> /dev/null ",$firstRun);
Is it possible to get errors or warnings only (may be using logs files it generates ) ?
cat filename.log | grep -iB2 -A5 "error\|warning"However, the log file you linked seems to be missing end-of-line characters, which is not a fault of TeX. – tohecz Nov 15 '12 at 9:41--interaction=batchmode. The exit code of the command is set, if there were any errors. – Heiko Oberdiek Nov 15 '12 at 10:24