This command works on Windows:
ReadList["!" <> "echo hello", String]
Assuming the "!" suggests Windows command shell (verified as
However, I tried the above code in
msys.bat which is a Unix-type shell on Windows, and it did not work. How can I do the above operation if it is not a Windows command shell?
Do I need to replace "!" or change
I have tried
path = "C:\\MinGW\\msys\\1.0\\msys.bat"; RunProcess[path, "StandardOutput", "echo Hello world exit "]
msys.bat in a new window, and Mathematica keeps running.