[REBOL] Re: Using Pipe with /Core
From: gjones05:mail:orion at: 29-May-2001 10:18
From: "Brett Handley"
> I just entered each case on my installation. Each one worked fine,
except
> the last. Then I noticed a typo and it worked fine too :)
>
> Both Core 2.5 and Core 2.3 on WinNT4
>
> I changed directory to each rebol directory and execute the line
there.
...
> Regarding why it doesn't work for you - check that you have Rebol/Core
on
> the PATH in your user environment variables - I've forgotten where
that is
> for Win98. Also ensure you have a environment variable called
REBOL_HOME
> pointing to the correct core directory.
Added this to my autoexec.bat, which now reads:
loadhigh C:\windows\command\doskey.com
path=%path%;c:\progra~1\tclpro1.4\win32-ix86\bin
set PATH="%PATH%;C:\vim\vim57"
set REBOL_HOME=C:\REBOL
rebooted, went to MS-DOS prompt, and change to c:\rebol
then ran:
C:\rebol>rebol -wq --do "print {Hello World} quit" | more
Intermediate file error during pipe
Rats!
> Lastly, is there anything in your autoexec.bat that
> might potentially screw Rebol up? Just throwing
> wild ideas around...
Next, I stripped the autoexec.bat down to the rebol_home line only.
Rebooted, and no difference.
Rats!
> "Intermediate file error" is suspicious. Have you tried
> doing some similar redirection with another exe? Might
> help the process of elimination...
Yeah, I thought the same thing. Tried several pipes; no problems!
> E.g. Assuming you have qbasic, how about creating a
> test.bas file with the lines
>
> input a$
> print a$
> system
>
> and then at the command prompt
>
> echo "testing" | qbasic/run test.bas
Finally, did this and it worked the first time! (I had forgotten about
the $ for strings in qbasic!! Looks funny now days.)
Rats!
> I don't know if it will help but it is worth a try.
>
> Brett.
It was worth a try. Thanks for your time, Brett. Later, today, I'll
try it on my wife's machine. She has a much cleaner and more recent
Win98 install. Thanks, again.
--Scott Jones