如何实现多个Unix标准输出重定向
如果我要写一个文件的标准输出,我会这样做如何实现多个Unix标准输出重定向,unix,redirect,standards,Unix,Redirect,Standards,如果我要写一个文件的标准输出,我会这样做 python abcd.py > abcd.log 但是,如果这样做,我将无法看到abcd.py的输出,如何更改上述命令,以便既可以看到abcd.py的输出,又可以将输出写入abcd.log查看tee命令 python abcd.py | tee abcd.log python abcd.py | tee abcd.log 看看tee命令 python abcd.py | tee abcd.log python abcd.py | te
python abcd.py > abcd.log
但是,如果这样做,我将无法看到abcd.py的输出,如何更改上述命令,以便既可以看到abcd.py的输出,又可以将输出写入abcd.log查看tee命令
python abcd.py | tee abcd.log
python abcd.py | tee abcd.log
看看tee命令
python abcd.py | tee abcd.log
python abcd.py | tee abcd.log
尝试使用tee命令
python abcd.py | tee abcd.log
python abcd.py | tee abcd.log
尝试使用tee命令
python abcd.py | tee abcd.log
python abcd.py | tee abcd.log
出于某种原因,这似乎打印速度非常慢。这是否正常?否,您可能会受到缓冲工件的影响,但速度应该可以。出于某种原因,打印速度似乎非常慢。这是正常行为吗?否,您可能会受到缓冲工件的影响,但速度应该可以。