have a cgi-script which generates a *.tex file based on inputs from the browser. i would like to generate a pdf and download it.
however the command doesnt execute and i get a fail message
if lualatex -interaction batchmode 3.tex
then
echo"yo"
else
echo "fail"
exit 2
fi
the 3.tex file is perfect and lualtex executes when directly executed from terminal.
i have used this also but could get it too work
kindly help
type luaflatexinto the script and see what comes out, or simply use luatex by its full path/usr/local/texlive/20..../bin/lualatexor whatever is allowed in your cgi environment, if the web server runs off a virtual root is tex even installed? – David Carlisle Oct 22 '16 at 19:10export PATH=/usr/local./txliv/whevere/it/is:$PATHas teh first line to add the texlive bin to the path – David Carlisle Oct 22 '16 at 20:44