2018年5月7日

ubuntu运行命令tee显示和保存为log

摘要: 一般有三种需求: 假如我要执行一个py文件 python class.py 1:将命令输出结果保存到文件log.log python class.py |tee log.log 结果就是:屏幕输出和直接执行python class.py输出一样,但是输出同样被保存到了log.log文件中 2:将命令 阅读全文

posted @ 2018-05-07 14:15 Maddock 阅读(2089) 评论(0) 推荐(0) 编辑

导航