I am running
latexmk in a silent and preview continuous mode.
latexmk -pdf -silent -pvc myfile.tex
However when I look at the terminal (which has brief log output), then I have no way to figure out the time(s) at which the file was compiled. In other words I would like a line
last compiled at Wed Sep 26 21:18:53 IST 2018
This is useful for me to trace the working version (in case of errors) from the backup sets.
I can write a small bash script, which will watch the file for update and then call
pdflatex in batchmode and then print output with date. (Grep for errors/warning in the aux/log and print message accordingly.) However isnt it nothing but duplicating the