Sample Header Ad - 728x90

How to get an application running under Wine to send command output directly to the CMD console?

0 votes
0 answers
41 views
My Windows' app, when run under Wine (wine-9.0 (Ubuntu 9.0~repack-4build3)) is unable to write anything to the CMD console, in order to see the output I have to redirect it to a file and then open that file. Let's take as an example the following simple call to the Windows API: Exec (cmd /k python --version) It opens an empty console; however, Exec (cmd /k python --version >out) correctly writes "Python 3.12.3" to the file "out". I have found no way to directly write to console. What is needed? Note. I wish to use the python interpreter existing in the Linux installation, not a version loaded in the wine environment, thus python -in the example above- is a symbolic link to /usr/bin/python3.
Asked by René (1 rep)
May 20, 2025, 10:14 AM
Last activity: May 20, 2025, 11:13 AM