Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何实现多个Unix标准输出重定向_Unix_Redirect_Standards - Fatal编程技术网

如何实现多个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

出于某种原因,这似乎打印速度非常慢。这是否正常?否,您可能会受到缓冲工件的影响,但速度应该可以。出于某种原因,打印速度似乎非常慢。这是正常行为吗?否,您可能会受到缓冲工件的影响,但速度应该可以。