是否可以在 Windows 中使用命令行打开命名管道?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3670039/
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
Is it possible to open a named pipe with command line in windows?
提问by Alan
I want to interact with the pipe manually , but so far I can only do this in the programe,which is not very intuitive.
我想手动与管道交互,但到目前为止我只能在程序中执行此操作,这不是很直观。
The effect I want to achieve is a little similar to :
我想要达到的效果有点类似于:
telnet localhost 3306
tail -f file.txt
Anyone get my idea?
有人明白我的想法吗?
回答by Dmitry
Look here: http://support.microsoft.com/kb/68941
看这里:http: //support.microsoft.com/kb/68941
There are two utilities shipped with SQL Server designed to help test network named pipes. The MakePipe.exe and ReadPipe.exe utilities are installed during installation of both the client and server components
SQL Server 附带了两个实用程序,旨在帮助测试网络命名管道。MakePipe.exe 和 ReadPipe.exe 实用程序在安装客户端和服务器组件期间安装
回答by meche
no there is no command line interface for windows named pipes see http://en.wikipedia.org/wiki/Named_pipefor more info
不,Windows 命名管道没有命令行界面,请参阅 http://en.wikipedia.org/wiki/Named_pipe了解更多信息
回答by rogerdpack
cygwin may have named pipes you can use. See also How to open a Windows named pipe from Java?
cygwin 可能有您可以使用的命名管道。另请参阅如何从 Java 打开 Windows 命名管道?