Matlab external scripts can not escape shell
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!