因此,我正在尝试将文件的输出(使用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 -options input.file | command1 | pv-选项> output.file

因此,就您而言,类似:

pv input.file |得到pv> somefile.log

注意:代码未经测试。

关于linux - 送入光伏并写入日志文件不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31463781/

10-12 23:59