none
How to get output of CLI programm (mpg123.exe) during runtime? RRS feed

  • Question

  • Hi MSDN Community,

    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  (using GnuWin32 tee.exe)

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

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

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

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

    Sources:

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

    http://getgnuwin32.sourceforge.net/



    Monday, June 11, 2018 2:25 PM

All replies

  • Hi SWX_,

    Thank you for posting here.

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

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

    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.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, June 13, 2018 8:18 AM