保存终端面板构建输出 [英] Save Terminal Bazel Build Output
本文介绍了保存终端面板构建输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以保存在终端中运行的bazel build命令的输出?命令是:
Is it possible to save the output of a bazel build command that is run in terminal? The command is:
bazel build tensorflow/examples/image_retraining:label_image &&
bazel-bin/tensorflow/examples/image_retraining/label_image
--graph=/tmp/output_graph.pb
--labels=/tmp/output_labels.txt
--output_layer=final_result:0
--image=$HOME/Desktop/Image-3/image1.png
我想将输出保存到.txt文件中;我不能简单地将> out.txt标记到该行的末尾,否则会抛出错误.但是有bazel-output命令吗?
I want to save the output to a .txt file; I cannot simply tag on > out.txt to the end of the line or I am thrown an error. But is there bazel-output command?
推荐答案
最新的 bazel
命令的标准输出记录在您的WORKSPACE的输出库中:
The stdout of the latest bazel
command is logged in your WORKSPACE's output base:
$ echo $(bazel info output_base)
/home/username/.cache/bazel/_bazel_username/3e8af127f8b488324cdf41111355ff4c
,确切的文件是 command_log
:
$ echo $(bazel info command_log)
/home/username/.cache/bazel/_bazel_username/3e8af127f8b488324cdf41111355ff4c/command.log
这篇关于保存终端面板构建输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文