[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?
> 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
call "psql >out.tmp -d ....."
And read this file with REBOL.
I will add the feature to get the result and output of the call.
Commander.c is not ready.