[REBOL] Re: newbie - How to
From: SunandaDH:aol at: 21-Jun-2003 3:36
Issac:
> Which is what I wanted except piping through more adds
> an extra newline and overhead.
Well, you are getting close!
You could try replacing the last 'print with a 'prin -- that might solve the
extra newline issue.
I'm not sure what you mean by "overhead" but piping to more is always going
to have a couple of drawbacks: an intermediate file, and no output appearing
until program termination.
If these are problems, you may need to wean your user into looking at the
REBOL console output instead of the DOS console.
> If the rebol script output gets to "|more" why doesn't
> it appear in the window without "|more" ?
That's a mystery. |more doesn't work at all on my set-up -- I just get a DOS
redirection error. You could avoid using |More, and perhaps gain a little more
control over what you are trying to do like this:
--------hello.r--------
REBOL [ Title: "Hello World"]
echo %temp.txt
print "hello world"
--------
Then execute it with a bat file:
---------hello.bat-------
@echo off
rebol -sq hello.r
type temp.txt
--------
(Note the -sq to remove any "script wants permissions" popups)
This gives me just three lines of output on the DOS console:
c:\temp>runhello
Hello world
C:\temp>
Sunanda.