Premise: I know (a bit of) Python.
I'm working on a a R Sweave (R + Latex) document.
To compile and execute it from command line I need to execute the following commands from console:
R CMD Sweaver fn.Rnw
pdflatex fn.tex
okular fn.pdf
Where
fn
varies from time to time (but is the same in all of the instructions).
Since I'm doing this many times, I'd like to make the process automatic and as simple as writing something like:
script <fn>
where fn is the parameters used in the 3 single commands.
I think this is somehow possible in Python or Perl, but I don't know where to begin.
Thanks in advance
make, which is the right tool for the job.