因此,我尝试将文件的输出(使用 get 检索)提供到日志文件中。
我拥有的是这样的:
get whateverfile | pv > somefile.log
我也尝试过用 xargs 来喂养它:
get | pv whateverfile > somefile.log
想法?提前致谢!
最佳答案
来自:http://www.cyberciti.biz/open-source/command-line-hacks/pv-command-examples/
pv -选项输入文件|命令1 | pv -选项 > 输出.文件
所以在你的情况下,类似:
pv 输入文件 |得到 | pv > somefile.log
注意:代码未经测试。
关于linux - 喂入 pv 并写入日志文件不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31463781/