[Gambas-user] Issue 499 in gambas: Unable to parse the standard error stream if using "Shell ... For Input" instead of "Shell ... For Read"

gambas at ...2524... gambas at ...2524...
Tue Jan 14 13:05:11 CET 2014


Status: New
Owner: benoit.m... at ...626...
Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 499 by benoit.m... at ...626...: Unable to parse the standard error  
stream if using "Shell ... For Input" instead of "Shell ... For Read"
http://code.google.com/p/gambas/issues/detail?id=499

1) Describe the problem.

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