Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Using Pipe with /Core

From: gjones05:mail:orion at: 29-May-2001 8:23

A while back, Michal Kracik wrote in response to a question: === You can try this in Windows command prompt in all Windows versions: C:\REBOL\test>rebol -wq --do "print {Hello World} quit" | more Hello World or this in Windows NT and 2000: C:\REBOL\test>rebol -wq --do "print {Hello World} quit" | findstr . Hello World What surprised me, piping input into REBOL works as well, if output is also redirected: C:\REBOL\test>echo "Hello REBOL" | rebol -wq --do "print [ {from stdin:} input ] quit" | more from stdin: "Hello REBOL" Regards, Michal Kracik === I've been trying this with /Core 2.5 on Win98 at the command prompt without luck. I get an "Intermediate File Error" at the prompt. Although the lines wrap here, I was careful that it was entered as a single line. Any ideas why it worked for Michal and not for me? Thanks. --Scott Jones