[Gambas-user] SHELL WRITE command

Benoit Minisini gambas at ...1...
Thu May 19 10:50:41 CEST 2005


On Tuesday 17 May 2005 13:43, Tom wrote:
> Hey,
>
> I am trying to read the output of a command using Process_Read(), however
> it's output is a prompt for the user to type something in...
>
> What I did was:
>
> SHELL command WAIT FOR READ WRITE AS myProcess
>
> PUBLIC SUB Process_Read()
>
>         reads the line into a variable
>
>         if the variable is "user prompt:" then
>                 WRITE getUserInput()
>         end if
>
> END
>
> however it doesnt seem to work...
>
> Have I done something wrong?
>
>

Please tell which version of gambas you use. In older stable releases, the 
compiler didn't tell that WAIT and FOR READ WRITE are not compatible.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list