criptkiller Posted July 25, 2012 at 05:18 PM Report Share #470307 Posted July 25, 2012 at 05:18 PM Olá Boa Tarde, Ando a desenvolver um script em PHP a rotina é simples: - O utilizador faz input de um texto LaTeX - Faz submit - O PHP escreve num ficheiro com a extensão ".tex" - executa esse ficheiro com a função shell_script ( com comandos já pre-instalado ) - E devolve uma imagem. O que eu espero que me devolta: uma imagem. O que me esta a devolver: echo x | latex test This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) kpathsea: Running mktexfmt latex.fmt fmtutil: format directory `/.texmf-var/web2c' does not exist. I can't find the format file `latex.fmt'! Error processing command: echo x | latex test at ./textogif line 212. O script que falo chama-se "textogif". Esse script é executado da seguinte forma: ./textogif test.tex Se fizer login por SSH e executar por SSH o comando anterior, corre tudo pelo o melhor. Alguém me pode dar alguma dica ? Link to comment Share on other sites More sharing options...
yoda Posted July 25, 2012 at 08:00 PM Report Share #470338 Posted July 25, 2012 at 08:00 PM Que privilégios tem o dono das pastas onde está o PHP? before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
criptkiller Posted July 25, 2012 at 08:40 PM Author Report Share #470343 Posted July 25, 2012 at 08:40 PM Peço desculpa já consegui... A solução foi comprimir o ficheiro format.tex que esta numa pasta oculta por SSH.. Fazer login por SFTP e fazer donwload do ficheiro. E depois fazer Upload do ficheiro apenas juntamente para o script... Podem fechar o topico. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now