【linux】保存屏幕日志log


例如:

#!/bin/bash

 

#LOG="examples/mnist/lenet_log_mylog"

LOG="LOG/log.txt.`date +'%Y-%m-%d_%H-%M-%S'`"#包含运行日期
exec &> >(tee -a "$LOG")
echo Logging output to "$LOG"

 

./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM