有谁知道 Windows 平台的 Pipe Viewer 的一个很好的替代品?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/504204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does anyone know of a good alternative to Pipe Viewer for Windows Platform?
提问by tundal45
If you do not know what Pipe Viewer is (I did not know about it until 5 minutes ago), then this blogdoes a good job giving a brief introduction to it with some examples. I write a lot of Perl Scripts as an ETL developer and a lot of times, the files that I work with take really long time to operate with (unzipping, moving, etc). Therefore, this tool would be awesome except I work in a Windows Environment. If anyone knows of a tool that gives you Progress of an operation running in the pipeline, please let me know as that would make my scripts that much more useful.
如果您不知道 Pipe Viewer 是什么(直到 5 分钟前我才知道它),那么此博客很好地通过一些示例对其进行了简要介绍。我作为 ETL 开发人员编写了很多 Perl 脚本,而且很多时候,我处理的文件需要很长时间才能操作(解压缩、移动等)。因此,除非我在 Windows 环境中工作,否则这个工具会很棒。如果有人知道一种工具可以为您提供在管道中运行的操作的进度,请告诉我,因为这将使我的脚本更有用。
采纳答案by Jacek ?awrynowicz
I doubt such a tool exists for win32, but it should run on cygwin. But then again You probably don't use it :)
我怀疑这样的工具是否存在于 win32,但它应该在 cygwin 上运行。但话又说回来你可能不使用它:)
回答by user67686
I finally made it work on Cygwin environment though that is not answer for the original post.
我终于让它在 Cygwin 环境中工作,尽管这不是原始帖子的答案。
--disable-nls
does the trick.
--disable-nls
诀窍。
./configure --disable-nls
make
make test
cp pv /usr/bin
== by Kenji (k2) ==
== by Kenji (k2) ==
回答by Pau Coma Ramirez
Cygwinhas pv (Pipe Viewer)as an available packagesince I don't know when... but it is not installedby default.
Cygwin有pv (Pipe Viewer)作为一个可用的包,因为我不知道什么时候......但它不是默认安装的。
- Download the Cygwin setup executablefrom the install page.
- While installing cygwin, you need to expressly search and markfor installation pvfound in the Utilssection.
- 从安装页面下载 Cygwin 安装程序可执行文件。
- 安装cygwin时,需要明确搜索并标记Utils部分中找到的安装pv。
If you have already installed cygwin, you can always add it later on by re-running the setup executable.
如果您已经安装了 cygwin,您可以随时通过重新运行 setup 可执行文件来添加它。