Frank,
commander looks the "business". I've compiled and got it running on my
Linux box.
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.
I would like to be able to do
Rebol> results: call "psql -d dbname -c 'select * from tablename'"
I will continue to investigate 'commander'
Regards
colinb
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Frank Sievertsen
Sent: Tuesday, March 20, 2001 5:49 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Commander.c adds Shell access for Rebol
Hi!
Until RT adds a launch support for /Core and /View you can try my
commander.c program.
It starts the rebol-Interpreter and adds a (very simple) 'call function to
it. You can now type
call "kedit commander.c"
to open kedit with the source-code ;)
How it works:
commander startes REBOL faking a console stream to it. It reads REBOLs
output to find character 0 (ZERO)s in it. Commands are marked
^@command^@
They are executed (in background).
So DON'T OUTPUT CHARACTER ZERO WHEN YOU USE COMMANDER at the moment.
Planned is to add full support of call like in /command and to replace
system/ports/output by a port which escapes character zero so commander
will be absolute transpartent.
Oh, use at your own risk and read the sourcecode:
http://proton.cl-ki.uni-osnabrueck.de/REBOL/commander.c
CU,
Frank
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.