Matlab external scripts can not escape shell
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lucas-Raphael Müller
el 28 de Sept. de 2017
Comentada: Lucas-Raphael Müller
el 28 de Sept. de 2017
Hi! I am trying to call a script or executing a command via system in bash. However, it seems Matlab does not let the command escape it's shell session(?)?
What I am trying to do is running something like
xelatex --shell-escape main.tex
since I have multiple tikz-figures to be compiled. However latex stucks and complains that shell escape was not working. running the exact same command in Terminal works (I made sure to provide the path to xelatex). I also tried to provide a shell script, with this command, hoping that would change something, but it doesn't.
#!/bin/bash
/Library/TeX/texbin/xelatex --shell-escape main.tex
This script works when executed via terminal, but not using system(...) or !... Do you have any idea how to get this done? Or is this a inherent restriction?
2 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!