oneliner possible?
[1/7] from: riachtchenko::docutec::de at: 13-Dec-2000 12:54
Hi folks,
Is it possible to output directly
from oneliner to the console, since:
D>$D:\Program_Files\rebol-0.31\core\rebol -w --do "print 5 + 4" >
o.txt
D>$type o.txt
Finger protocol loaded
Whois protocol loaded
Daytime protocol loaded
SMTP protocol loaded
POP protocol loaded
HTTP protocol loaded
FTP protocol loaded
NNTP protocol loaded
Script: "User Preferences" (28-Nov-2000/15:22:35+1:00)
9
but no way with:
D>$D:\Program_Files\rebol-0.31\core\rebol -w --do "print 5"
sascha.
[2/7] from: petr:krenzelok:trz:cz at: 13-Dec-2000 13:21
riachtchenko wrote:
> Hi folks,
> Is it possible to output directly
<<quoted lines omitted: 14>>
> but no way with:
> D>$D:\Program_Files\rebol-0.31\core\rebol -w --do "print 5"
hmm, I can't help you, but one small suggestion anyway:
1) try -wq .... where 'q stands for quiet mode, preventing all Rebol
initializing info to appear ....
2) what doesn't work for you in the example above? I got 5 printed in
the console. Why do you use windowless option -w, if you are not
outputting results back into file?
Cheers,
-pekr-
[3/7] from: riachtchenko:docutec at: 13-Dec-2000 13:50
> 1) try -wq .... where 'q stands for quiet mode, preventing all Rebol
> initializing info to appear ....
>
I mean,
D>$D:\Program_Files\rebol-0.31\core\rebol -wq --do "print 5 + 9"
>o.txt
D>$type o.txt
14
REBOL/Core 2.4.39.3.1 22-Nov-2000
Copyright 2000 REBOL Technologies. All rights reserved.
[4/7] from: riachtchenko:docutec at: 13-Dec-2000 13:44
Well, i have nt box here;-),
so -qw doesn't work either , and
without -w rebol shell starts, which i in this case rather
would'n start.
sorry - it' just -another interesting question-
s.
Petr Krenzelok wrote:
[5/7] from: johnkenyon:ibm at: 13-Dec-2000 13:24
Hi,
Just tried
E:\home\rebol\rebol>rebol --cgi -wq --do "print 5" >test.txt
E:\home\rebol\rebol>cat test.txt
5
REBOL/Core 2.4.39.3.1 22-Nov-2000
Copyright 2000 REBOL Technologies. All rights reserved.
Which seems to work.
Cheers,
John
Well, i have nt box here;-),
so -qw doesn't work either , and
without -w rebol shell starts, which i in this case rather
...
[6/7] from: arolls::bigpond::net::au at: 14-Dec-2000 0:27
Re(2): oneliner possible? yes - quit after statements
This is what I get.
D:\Anton\Dev\Rebol\view>rebol -wq --do "print 5 quit" | more
5
D:\Anton\Dev\Rebol\view>:)
Anton.
[7/7] from: riachtchenko:docutec at: 13-Dec-2000 14:27
Great, Anton!
Thanks you all.
s.
Anton wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted