[REBOL] Re: Commander.c adds Shell access for Rebol
From: fsievert:uos at: 21-Mar-2001 10:35
On Wed, 21 Mar 2001, Colin Brizell wrote:
> I have a small question, how can I capture the output in REBOL of the
> command I call?
>
> eg
>
> Rebol> call "psql -d dbname -c 'select * from tablename'"
>
> This returns all the rows from tablename on STDOUT (?) but I don't see how I
> can assign then to a REBOL word.
This is not possible at the moment. You can only call commands at the
moment but not get the output. It is possible to redirect the output into
a file
call "psql >out.tmp -d ....."
And read this file with REBOL.
read %out.tmp
I will add the feature to get the result and output of the call.
Commander.c is not ready.
CU,
Frank