[Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout

gambas at ...2524... gambas at ...2524...
Thu Jan 9 17:47:24 CET 2014


Comment #1 on issue 494 by Kokok... at ...626...: 100% cpu use when using  
SHELL (FOR READ) and on a process that redirects stdout
http://code.google.com/p/gambas/issues/detail?id=494

As a side note, i'm unable to parse the standard error stream if using "for  
input" instead of "for read".
To explain better, this:

--
Public myprocess As Process

Public Sub Main()
   myprocess = Shell "/bin/ls /does/not/exist" For Input As "myprocess"
End

  Public Sub myprocess_error(MyError As String)

    Print myerror

  End
---

Does not produce any output.

So, by now:
If one wants to start an external command and redirect the standard output  
to a file:

1- using "FOR READ" makes the cpu jumps to 100% and the interpreter hangs  
on exit.
2- using "FOR INPUT" makes impossible to parse error messages in the stderr  
stream.


-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list