使用Matlab将日志语句写入标准输出 [英] Writing log statements to standard output with Matlab
问题描述
我们从 Jenkins构建服务器启动Matlab.由于构建可能需要一些时间,因此在运行matlab时获得一些日志输出会很好.有没有一种方法可以将文本打印到标准输出? disp,fprintf和java.lang.System.out.printline仅写入matlab控制台,而不写入标准输出.
We're starting Matlab from our Jenkins buildserver. As the build may take some time it would be nice to get some log-outputs while matlab is running. Is there a way to print text to standard output? disp, fprintf and java.lang.System.out.printline only write to the matlab console, not to standard output.
使用日志文件或管道将无济于事,因为Jenkins仅在构建步骤中从标准输出读取.
Using a logfile or a pipe won't help, as Jenkins only reads from standard-output during a build step.
我们如何在Matlab运行时将日志语句写入标准输出?
How can we write log-statements to the standard output while matlab is running?
我们正在Windows上运行Matlab 2010b
We're running Matlab 2010b on Windows
推荐答案
我没有找到真正的解决方案. Mathworks创建了一些包装器工具.但这只会在matlab退出后才输出结果.在执行过程中您不会得到任何输出.
I didn't find a real solution. Mathworks created some wrapper tool. But this will only output the results after matlab has exited. You won't get any ouput during execution.
所以我将没有真实的实时输出...
So I'll have live without real live-output...
这篇关于使用Matlab将日志语句写入标准输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!