如何在运行时输出CLI程序(mpg123.exe)? [英] How to get output of CLI programm (mpg123.exe) during runtime?

查看:71
本文介绍了如何在运行时输出CLI程序(mpg123.exe)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSDN社区,

是否可以以任何方式在运行时获取已启动的可执行文件(如mpg123.exe)的输出???

is it possible in any way to get the outputs of a started executable like mpg123.exe during runtime???

到目前为止我测试的是什么(没有运气):

What I was testing (without luck) so far:

mpg123.exe http://148.251.184.14:8192 / stream> streaming.txt

mpg123.exe http://148.251.184.14:8192/stream | tee.exe streaming.txt  (使用GnuWin32 tee.exe)

start / b" mpg123.exe http://148.251.184.14:8192/stream> streaming.txt"

在运行时期间,streaming.txt一直是0字节mpg123 stream。

All the time streaming.txt is still 0 bytes during runtime of mpg123 stream.

但我想在运行时访问输出以显示更改的流消息...

But I want to access the output during runtime to visualize the changing stream messages...

有没有人知道,如果Windows可以以任何方式实现这一点?

Does anyone know, if this is possible with Windows in any way?

Linux方式花了我20分钟完成它:

添加" 2& 1& "在管道的末端......

The Linux way took me 20 minutes to get it done:
Adding " 2>&1 & " at the end of the pipe...

来源:

https://mpg123.de/download/win64/1.25.10/

https://mpg123.de/download/win64/1.25.10/

http://getgnuwin32.sourceforge.net/

http://getgnuwin32.sourceforge.net/

推荐答案

您好SWX _,

Hi SWX_,

感谢您在此发帖。

自您的问题与mpg123.exe更相关,您可以在GitHub问题中发布新帖子。

Since your question is more related to mpg123.exe, you could post a new thread in GitHub Issues.

https://github.com/Binaryify/mpg123-static

CLR论坛讨论并询问有关.NET Framework基类(BCL)的问题,例如集合, I / O,Regigistry,Globalization,Reflection。还讨论了构建或扩展.NET Framework的所有其他Microsoft库,包括Managed
可扩展性框架(MEF),图表控件,CardSpace,Windows Identity Foundation(WIF),销售点(POS),事务处理。

The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

最好的问候,

Wendy


这篇关于如何在运行时输出CLI程序(mpg123.exe)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆