开发者

How do do multiple Unix Standard output redirections

开发者 https://www.devze.com 2023-03-19 06:23 出处:网络
If i were to write the standard output of a file i would do something like python abcd.py > abcd.log

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

精彩评论

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

关注公众号