开发者

How do do multiple Unix Standard output redirections

If i were to write the standard output of a file i would do something like

python abcd.py > abcd.log

But if I do that i wouldn't be able to see the output of abcd.py, How would i change the above command so i can both see the ouput of abcd.py and also开发者_如何转开发 write the output to abcd.log


Look at the tee command

python abcd.py | tee abcd.log


try use tee command

 python abcd.py | tee abcd.log
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜