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
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
- [REBOL] Re: Shell access for Rebol, was: zip file supp... ryan . christiansen
- [REBOL] Commander.c adds Shell access for Rebol Frank Sievertsen
- [REBOL] Re: Commander.c adds Shell access for... Colin Brizell
- [REBOL] Re: Commander.c adds Shell access... Frank Sievertsen
- [REBOL] Re: Commander.c adds Shell access for... GS Jones
- [REBOL] Re: Commander.c adds Shell access... Frank Sievertsen
- [REBOL] Re: Commander.c adds Shell ac... GS Jones
- [REBOL] Re: Commander.c adds She... Michal Kracik
- [REBOL] Re: Commander.c adds... Frank Sievertsen
- [REBOL] Re: Commander.c ... Michal Kracik
- [REBOL] Re: Commander.c ... Deryk Robosson
- [REBOL] Re: Commander.c ... Harold Grovesteen
- [REBOL] Re: Commander.c ... Michal Kracik
- [REBOL] Re: Commander.c ... Frank Sievertsen
