简体   繁体   English

是否可以在windows中用命令行打开一个名为pipe的?

[英]Is it possible to open a named pipe with command line in windows?

I want to interact with the pipe manually, but so far I can only do this in the programe,which is not very intuitive.我想手动与 pipe 交互,但到目前为止我只能在程序中执行此操作,这不是很直观。

The effect I want to achieve is a little similar to:我想要达到的效果有点类似于:

telnet localhost 3306

tail -f file.txt

Anyone get my idea?有人明白我的想法吗?

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. SQL Server 附带了两个实用程序,旨在帮助测试网络命名管道。 The MakePipe.exe and ReadPipe.exe utilities are installed during installation of both the client and server components MakePipe.exe 和 ReadPipe.exe 实用程序在安装客户端和服务器组件期间安装

不,Windows 命名管道没有命令行界面,请参阅http://en.wikipedia.org/wiki/Named_pipe了解更多信息

From PowerShell来自 PowerShell

PS>$pipe = New-Object System.IO.Pipes.NamedPipeServerStream("DummyPipe", "InOut")

PS>Get-ChildItem -Path "\\.\pipe\" -Filter *DummyPipe*

More explanation: https://decoder.cloud/2019/03/06/windows-named-pipes-impersonation/更多解释: https : //decoder.cloud/2019/03/06/windows-named-pipes-impersonation/

There is a free command line utility to create and write/read from named pipes on Windows: https://github.com/psmay/windows-named-pipe-utils有一个免费的命令行实用程序可以在 Windows 上创建和写入/读取命名管道: https://github.com/psmay/windows-named-pipe-utils

cygwin may have named pipes you can use. cygwin 可能有你可以使用的命名管道。 See also How to open a Windows named pipe from Java?另请参阅如何从 Java 打开 Windows 命名管道?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM