簡體   English   中英

是否可以在windows中用命令行打開一個名為pipe的?

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

我想手動與 pipe 交互,但到目前為止我只能在程序中執行此操作,這不是很直觀。

我想要達到的效果有點類似於:

telnet localhost 3306

tail -f file.txt

有人明白我的想法嗎?

看這里: http : //support.microsoft.com/kb/68941

SQL Server 附帶了兩個實用程序,旨在幫助測試網絡命名管道。 MakePipe.exe 和 ReadPipe.exe 實用程序在安裝客戶端和服務器組件期間安裝

不,Windows 命名管道沒有命令行界面,請參閱http://en.wikipedia.org/wiki/Named_pipe了解更多信息

來自 PowerShell

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

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

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

有一個免費的命令行實用程序可以在 Windows 上創建和寫入/讀取命名管道: https://github.com/psmay/windows-named-pipe-utils

cygwin 可能有你可以使用的命名管道。 另請參閱如何從 Java 打開 Windows 命名管道?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM