TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

we are executing following code from .php file.

$result1 = shell_exec("R CMD Sweave /var/www/html/r/r_latex_sweave.Rnw");

$result2 = shell_exec("pdflatex /var/www/html/r/r_latex_sweave.tex");

But, we are getting this errors :

$result1 = shell_exec("R CMD Sweave /var/www/html/r/r_latex_sweave.Rnw"); [11:53:55] $result2 = shell_exec("pdflatex /var/www/html/r/r_latex_sweave.tex");

can you please help us on this?


share|improve this question

marked as duplicate by Claudio Fiandrino, Kurt, Charles Stewart, Martin Schröder, cmhughes Jul 30 '13 at 9:04

This question was marked as an exact duplicate of an existing question.

possible duplicate of tex.stackexchange.com/q/125995/19326 also where is the errormessage, that does not look like an error message to me – ted Jul 30 '13 at 7:09
Welcome to TeX-SX! Have a look at our starter page for a quick intro if you wish to familiarize yourself with our format. – Claudio Fiandrino Jul 30 '13 at 7:14

Browse other questions tagged or ask your own question.