Dear All,
Sorry if that´s a confusing header.. I´ll try to explain:
I have this:
This works great when nothing is wrong, but sometimes an error is thrown, and that´s intentional. In that case, the output ends up in shl_StdErr.
Is there a way to wait for an incoming message in either one of stdOut OR StdErr?
Sorry if that´s a confusing header.. I´ll try to explain:
I have this:
B4X:
Dim shl As Shell
shl.Initialize("shl", "py", Array As String("C:\python\getchannelid.py",channame))
shl.InputStreamEnabled = True
shl.RunWithOutputEvents(-1)
Wait For (shl) shl_StdOut (Buffer() As Byte, Length As Int)
Dim Output As String = BytesToString(Buffer,0,Length,"UTF-8")
Log (Output)
This works great when nothing is wrong, but sometimes an error is thrown, and that´s intentional. In that case, the output ends up in shl_StdErr.
Is there a way to wait for an incoming message in either one of stdOut OR StdErr?