get system console text?

BlitzMax Forums/BlitzMax Programming/get system console text?

slenkar(Posted 2009) [#1]
I tried to get the error message from the java compiler but it doesnt print anything

Import pub.freeprocess
		Local	process:TProcess
		Local	bytes:Byte[]
	process:tprocess=createprocess("C:\Program Files\Java\jdk1.6.0_11\bin\javac c:\download\wait.java")
'process:tprocess=createprocess("trev.exe")

		If process
			While True
				bytes=process.pipe.ReadPipe()
				If bytes
					Print String.FromBytes(bytes,Len bytes)
				EndIf
				If Not process.status() Exit				
				Delay 10
			Wend
			Else
			Print "no"
		EndIf



plash(Posted 2009) [#2]
Have you tried reading the 'err' (error) pipestream from the process yet?


slenkar(Posted 2009) [#3]
yea it didnt work either