[texhax] latexmk error in gnome-terminal

Susan Dittmar Susan.Dittmar at gmx.de
Wed Jan 16 15:49:03 CET 2013


Some more ideas for debugging:

gnome-terminal -e 'echo $PATH'

(notice the *single* quote!), to check whether that's the PATH inside 
the gnome-terminal.

gnome-terminal -e 'type -a latexmk'

That should give you a list of all possible interpretations of 'latexmk' 
within the gnome-terminal. Usually the first of those is executed.

gnome-terminal -e 'pwd'

will give you the working directory gnome-terminal assumes.

gnome-terminal -e 'ls f.tex'

will show you if the file f.tex is found in this working directory.

gnome-terminal -e 'latexmk f.tex' > logfile.out 2>&1

will write all *gnome-terminal*'s output (including error messages) into 
file logfile.out, which you then can have a look at (using more or any 
editor).

gnome-terminal -e 'latexmk f.tex > logfile2.out 2>&1 < /dev/null'

will write all *latexmk*'s output (including error messages) into file 
logfile2.out, which you then can have a look at (using more or any 
editor). The addition of '</dev/null' makes sure latexmk receives input 
(empty) in case it needs that.

Hope this helps,

	Susan


More information about the texhax mailing list