Re: [code][win95] regarding a snippet

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/22/97


On Wed, 22 Oct 1997, Mike Carpenter wrote:

>/* This is the section that i dont understand what does he mean by in the
>batch file run the mud wit redirected....  Im sure this really shows my
>newbieness but please humor me */

>ie.  circle.exe >> log.txt

DOS can redirect stdout (printf) but not stderr (fprintf(stderr, ...)) so
you're converting the fprintf's to printf's that DOS can then send to a
file. If you just ran 'circle.exe' you'd get the logs on your screen as
usual.  But if you run "circle.exe > log.txt" you would send to a file.

 --
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST