1

I am using a unix based OS and i am at moment trying to make a small bash program that compiles my tex file all the time, such that i don't need to do that every single time.. the It seem to be compiling fine, but it doesn't create any PDF file.. and I am bit confused on why it doesn't do that.

Here is the code :

#!/bin/bash
while true
do
    pdflatex -synctex=1 -interaction=nonstopmode /Users/Johnathan/Documents/Bachelor/Rp/bachelor.tex
done
  • Use [rubber](http://www.usinglinux.org/textproc/rubber.html) ... See http://www.usinglinux.org/textproc/rubber.html – Basile Starynkevitch May 10 '15 at 21:06
  • not sure what you mean.. Exactly this code has worked before.. which why i am asking –  May 10 '15 at 21:37
  • Oh I misread, sorry. I suggest using inotifywait (https://github.com/rvoicilas/inotify-tools/wiki) to compile the tex files every time the content changes or use a cron job. -- Does the command generate a pdf when manually executing it? – ShellFish May 10 '15 at 21:43
  • Anything useful in the log file? – ShellFish May 10 '15 at 21:47
  • It says that no error occurs and a PDF should be created but none are created.. this was intended to be some kind of cron job –  May 10 '15 at 22:22

1 Answers1

0

Nothing wrong with the bash.. I forgot to run it in correct directory.. I kept it had outputted the onto start..