Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,终端输出的同时怎么自动保存到log? #12

Open
qihao430 opened this issue Jun 8, 2018 · 5 comments
Open

请问,终端输出的同时怎么自动保存到log? #12

qihao430 opened this issue Jun 8, 2018 · 5 comments

Comments

@qihao430
Copy link

qihao430 commented Jun 8, 2018

有的时候突然就死机了,训练的日志都没了,请问能屏幕变输出,边保存所有日志吗。试了tee重定向,不能保存INFO: 等输出

@qihao430
Copy link
Author

qihao430 commented Jun 8, 2018

搞定了哈~~

@Lane565
Copy link

Lane565 commented Jul 16, 2018

咋解决的???

@moli232777144
Copy link
Owner

python xxx.py 2>&1 | tee xxx.log

@qihao430
Copy link
Author

在训练的命令后加“ 2>&1 | tee xxx.log”

@Lane565
Copy link

Lane565 commented Jul 17, 2018

@moli232777144 @qihao430 谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants