简体   繁体   中英

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

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

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/

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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