Hi,
I am using Chinese Windows OS, and try to use function process (FProcess) to execute external script. It seems FProcess runs OK, but the Console does not show the error message correctly. It looks like:
*** INFO Process : started ... [D:\\test.bat]
hello world
����: ��֧���������¶����������˳��˽��̡�
*** INFO Process : finished [exit code 0]
The codes in feature definition are quite simple. They are
string exe("D:\\test.bat")
process mytool(exe)
mytool.run()
And the test.bat is also very simple. It is
@echo off
echo hello world
timeout /t 10 /nobreak >nul
The error message shows when the timeout line is executed, which shows like a list of question marks. I guess it is because the Console window does not support utf-8 characters. It would be much easier for me to debug the codes if the Console window could show correct message.
By the way, instead of Software Connector, the reason I use FProcess to get info from external program is that the amount and positions of datas in the input.txt are not fixed. I have tried to use runProcessBlocking to execute the external script, but there is very limited infomation about this function from the documentation. I don't know if there is any example in the tutorials. If you could give some simple examples about runProcessBlocking, it would be very helpful.
Thanks.