Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix上的沙箱Mathematica_Unix_Wolfram Mathematica - Fatal编程技术网

Unix上的沙箱Mathematica

Unix上的沙箱Mathematica,unix,wolfram-mathematica,Unix,Wolfram Mathematica,有人能在ptrace沙箱下运行Mathematica吗? 我可以让Matlab使用它,但Mathematica似乎停滞不前了 下面的代码应该生成img.png,所有调用都是ptraced、冻结的 strace -f test.m 测试m: #!/usr/local/bin/MathematicaScript -script img=Plot3D[Im[ArcSin[(x + I y)^4]], {x, -2, 2}, {y, -2, 2}, Mesh -> None,PlotStyle

有人能在ptrace沙箱下运行Mathematica吗? 我可以让Matlab使用它,但Mathematica似乎停滞不前了

下面的代码应该生成
img.png
,所有调用都是ptraced、冻结的

strace -f test.m
测试m:

#!/usr/local/bin/MathematicaScript -script
img=Plot3D[Im[ArcSin[(x + I y)^4]], {x, -2, 2}, {y, -2, 2}, Mesh -> None,PlotStyle -> Directive[Yellow, Specularity[White, 20], Opacity[0.5]],ExclusionsStyle -> {None, Red}];
Export["img.png", img]

交叉贴到Mathematica邮件列表中这对我来说很好。 我使用了一些最新的基于debian的Linux:

rolfm@gluon:~/mathgroup$ uname -a

Linux gluon 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

您正在谈论ptrace,但您显示的调用是对strace的。@belisarius可能是,但
strace
似乎是一个类似于
ptrace
的函数,因此应该弄清楚是哪个函数导致了问题。ptrace是一个用于拦截命令的内核机制,strace是一个使用ptrace的监视实用程序,systrace是一个使用ptrace的安全沙盒。如果某些东西在strace下不起作用,它可能在任何ptrace实用程序下都不起作用。这真的是关于编程的吗?我认为超级用户可能更好。问题是超级用户上没有Mathematica用户。最好在Mathematica stack overflow启动后再问这个问题——嗨,Rolf,很高兴在stackoverflow上看到你。我同意,@Yaro的代码在我的Ubuntu11.04系统上运行良好。谢谢检查,你们都没有使用分布式许可证,对吗?(您必须指定许可证服务器)另一个问题,您的strace版本“strace-V”是什么?我使用普通/本地Mma许可证
strace——4.5.20版
我已合并了您未注册的帐户。您在评论或编辑方面应该不会再有任何困难。