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
精彩评论