Inside cmd.exe from wine, how to run /bin/ls and get output into cmd.exe, no DISPLAY, cli only. I know start /unix exists, but this attempt to launch an external job/window. I am in terminal only, and would like to run a linux terminal program, and get the output back on wine.
I am running wine 10.
I appreciate any guidance.
Add a comment
|
1 Answer
This is explained in the Wine FAQ:
-
Thank you, I did it using regtool from msys2:
MSYS2_ARG_CONV_EXCL="/HKLM*" regtool set "/HKLM/System/CurrentControlSet/Control/Session Manager/Environment/PATHEXT" ".COM;.EXE;.BAT;.CMD;."Rainb– Rainb2025-05-09 12:10:16 +00:00Commented May 9 at 12:10 -
Fun fact, this is how to send a command from msys2 to cmd, to cmd to wine
MSYS2_ARG_CONV_EXCL="*" cmd.exe /c "/bin/sh -c \\"echo my command here " "Rainb– Rainb2025-05-09 12:27:28 +00:00Commented May 9 at 12:27 -
I did this (the PATHEXT property ends on ;.) but it doesn't work (it always gives me "Can't recognize '/bin/ls' as an internal or external command, or batch script.")milkwood1– milkwood12025-09-15 20:08:50 +00:00Commented Sep 15 at 20:08
-
@milkwood1 huh, that’s intriguing, it no longer works for me either — it worked in May (with whatever version of Wine I had then), but not any more.Stephen Kitt– Stephen Kitt2025-09-16 09:14:04 +00:00Commented Sep 16 at 9:14
