开发者

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.

The effect I want to achieve is a little similar to :

telnet localhost 3306

tail开发者_如何学Python -f file.txt

Anyone get my idea?


Look here: 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


From 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/


no there is no command line interface for windows named pipes see http://en.wikipedia.org/wiki/Named_pipe for more info


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


cygwin may have named pipes you can use. See also How to open a Windows named pipe from Java?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜