Is there a script command the will compile a LaTeX file similar to the GNUPlot  command, i.e.
 
gnuplot --input="@tmpfile" --output=display
 
Thanks,
 
Logan Kelly