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

[REBOL] Re: Newbie question: printing to the STDOUT with VIEW

From: maximo:meteorstudios at: 16-Mar-2004 15:20

> hmmm > > I belive that works everywhere _but_ windows, > the lack of response from > > C:\rebol\view>rebol -c --do"print {foo}" > > seems to confirm it,
actually, the problem in this example might be that the --do argument is broken (ignored) in several versions of rebol... (this might also be the case on specific OSes only.) you can run a script tough and use MORE to print it to the console like so: C:\rebol\view>rebol -c --script test.r | MORE the problem with more on windows is that there in no switch to turn off one screen at a time viewing with user pressing return... if your output is longer than one page, or is part of a live server, then you will have to find a better more.exe I am SURE there are many on the net, or you can run the script and get print its log once the app has quit. call "view1210031 -c --script test.r > log.txt" & type log.txt we need to call view because the nutty DOS shell does not close the log.txt file handle befor the end of the line, which means, type will try to print an empty file.... yes... the DOS Shell IS BAD :-( -MAx