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

[REBOL] Re: Core and stdin

From: kracik:mbox:dkm:cz at: 13-Apr-2001 9:05

Hi, actually, pipe can be used for redirecting REBOL input and output in Windows. The problem is that Windows does not have the cat command, and few other commands support input from stdin. 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 Brian Hawley wrote: