rebol to bash?
[1/9] from: al:bri:xtra at: 1-Feb-2001 17:17
> OSCAR: OPEN SOURCE CODE Also known as REBOL
>
> http://www.egroups.com/group/OSCAR-PROJECT
http://groups.yahoo.com/group/OSCAR-PROJECT
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/
[2/9] from: spliff:ains:au at: 30-Jan-2001 16:08
Hi Tom,
It's exactly this issue that eroded my faith in rebol. Every other
language i've come across allows me to make use of the amazing variety of
command-line tools on UNIX such as ls, grep, locate etc and store the
stdout in a variable for further processing. REBOL/Command lets you do
this but only at a price of US$300.
This is the primary reason why I am trading in REBOL for tcl 'tickle'.
This language has a similar structure to rebol but can access external
commands. For example:
set newline = "\n"
puts "The following users are logged in $newline [exec users]"
This is very similar to rebol syntax except you can merge strings with
variables more easily than using 'print 'form 'rejoin combinations. Tcl
also understands blocks in a similar way to rebol:
REBOL [] ; a REBOL script
foreach number [1 2 3] [
switch :number [
1 [print "One"]
2 [print "Two"]
3 [print "Three"]
]
]
# A tcl script
foreach number {1 2 3} {
switch $number {
1 {puts "one";}
2 {puts "two";}
3 {puts "three";}
}
}
Tcl/Tk also has an excellent windowing system with much clearer syntax
than the 'faces' of REBOL/View.
But best of all Tcl doesn't time out - ever - which in REBOL is driving me
batsh!t. I'm sure many will agree with that last statement if nothing
else.
REBOL is a fantasic language and I love the syntax but problems with
controlling ports, using parse and particularly interacting with external
applications makes it pretty useless for controlling UNIX servers, which
is basically what I need. Fortunaetly I can still take advantage of some
of REBOL's better features by calling it from Tcl scripts like this:
exec rebol --do send [sales--rebol--com] "Sorry...";
Like they say Tom, "The right tools for the right job!"
SpliFF
On Mon, 29 Jan 2001
[balayo--mindspring--com] wrote:
[3/9] from: spliff:ains:au at: 30-Jan-2001 19:47
Hi Tom,
It's exactly this issue that forced me to stop using Rebol. Every other
language i've come across allows me to make use of the amazing variety of
command-line tools on UNIX such as ls, grep, locate etc and store the
stdout in a variable for further processing. REBOL/Command lets you do
this but only at a price of US$300.
This is the primary reason why I am trading in REBOL for tcl 'tickle'.
This language has a similar structure to rebol but can access external
commands. For example:
set newline = "\n"
puts "The following users are logged in $newline [exec users]"
This is very similar to rebol syntax except you can merge strings with
variables more easily than using 'print 'form 'rejoin combinations. Tcl
also understands blocks in a similar way to rebol:
REBOL [] ; a REBOL script
foreach number [1 2 3] [
switch :number [
1 [print "One"]
2 [print "Two"]
3 [print "Three"]
]
]
# A tcl script
foreach number {1 2 3} {
switch $number {
1 {puts "one";}
2 {puts "two";}
3 {puts "three";}
}
}
Tcl/Tk also has an excellent windowing system with much clearer syntax
than the 'faces' of REBOL/View.
But best of all Tcl doesn't time out - ever - which in REBOL is driving me
batsh!t. I'm sure many will agree with that last statement if nothing
else.
REBOL is a fantasic language and I love the syntax but problems with
controlling ports, using parse and particularly interacting with external
applications makes it pretty useless for managing UNIX servers, which
is basically what I need. Fortunaetly I can still take advantage of some
of REBOL's better features by calling it from Tcl scripts like this:
exec rebol --do send [sales--rebol--com] "Sorry... Can't afford it";
Like they say Tom, "The right tools for the right job!"
SpliFF
On Mon, 29 Jan 2001
[balayo--mindspring--com] wrote:
[4/9] from: robbo1mark:aol at: 31-Jan-2001 12:59
SPLIFF / EVERYBODY
I too have "suffered" REBOL's shortcomings & lack of flexibility regards standard output
capabilities amongst other things. Solution?
NOT Tcl (tickle)
NOT Perl
Not Python
Not Ruby
or any other language.
REBOL is cool, REBOL is the future, or at least a very great step in the right direction.
Want to make REBOL better, well pester Carl & the REBOL Tech. team until you get what
you want / need.
Alternatively help yourself & join the OSCAR Project.
OSCAR: :REBOL
OSCAR: OPEN SOURCE CODE Also known as REBOL
http://www.egroups.com/group/OSCAR-PROJECT
damn... forgot Yahoo have usurped egroups. can't remember new url however you should
be re-directed.
Help yourself, Help REBOL, JOIN OSCAR!
Mark Dickson
[5/9] from: balayo:mindspring at: 29-Jan-2001 21:54
hey guys,
I'm the king of easy questions. I like to print nifty little
one-liners to stdout with rebol, but I can't seem to get them to my $
prompt.
In my boundless ignorance, I tried a shell script:
one-liner.r | bash
That obviously didn't work.
anybody have any luck with stuff like this?
--
Eat more spinach.
-tom
[6/9] from: rebol:techscribe at: 29-Jan-2001 21:35
Hi Tom,
the following works for me:
#!/usr/local/bin/rebolcmd -c
REBOL []
print "hi"
I know, I know, -c is actually intended for CGI, but it does it the
trick in this case too. Use your own path of course, and your own rebol
version (I'm using rebolcmd).
Hope that helps,
Elan
[balayo--mindspring--com] wrote:
[7/9] from: g:santilli:tiscalinet:it at: 30-Jan-2001 12:15
[balayo--mindspring--com] wrote:
> one-liner.r | bash
This works for me. What is the problem?
Ciao,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[8/9] from: fantam:mailandnews at: 18-Feb-2001 0:36
Has something happened to the list?
Where is it?
[9/9] from: al:bri:xtra at: 18-Feb-2001 22:06
Fantam wrote:
> Where is it?
Project mailing list:
http://groups.yahoo.com/group/OSCAR-PROJECT
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/