Use the writeLaTeX API to compile LaTeX files to PDF from the commandline. Without installing anything. (Other than python)
> python compile.py example.tex
Uploaded: https://www.writelatex.com/66035jrhwkk
PDF size: 55721 bytes
PDF saved: 'example.pdf'