0

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.

3
  • hm, interesting, I can't even get cmd to start unix commands that are behind symlinks, can't recognize '/usr/bin/python --version' as an internal or external command, or batch script. Commented May 20 at 11:28
  • How are you starting your app? If I do % wine cmd /k echo hello from a terminal window then I get hello output on that terminal (and I'm left in the CMD shell). Commented May 20 at 14:03
  • That is right, % wine cmd /k echo hello, writes correctly to console, but % wine cmd /k python --version does not. Python output is not sent directly to console. Commented May 22 at 9:33

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.