www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/12:57:45

From: Rodeo Red <rodeored AT netstep DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Read Me Third: A Short FAQ List
Date: Wed, 20 Oct 1999 08:35:48 -0400
Organization: Church of Evangelical Environmental Extremism
Lines: 57
Message-ID: <B3DF9897F2B2055A.96634C1497443CA9.406BB34725B80974@lp.airnews.net>
X-Orig-Message-ID: <380DB723 DOT B4759EE5 AT netstep DOT net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991019131856 DOT 13375B-100000 AT is> <E74AC92C3E4A9C9C DOT 4E994DD3148FBF35 DOT FA4770D95AB418A2 AT lp DOT airnews DOT net> <cPcP3.3753$E4 DOT 6055 AT newsfeeds DOT bigpond DOT com>
Abuse-Reports-To: support at netstep.net to report improper postings
NNTP-Proxy-Relay: library1.airnews.net
NNTP-Posting-Time: Wed Oct 20 07:35:22 1999
NNTP-Posting-Host: !a5=D-@[.^q(OrL (Encoded at Airnews!)
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Johan Venter wrote:

> Rodeo Red <rodeored AT netstep DOT net> wrote in message
> news:E74AC92C3E4A9C9C DOT 4E994DD3148FBF35 DOT FA4770D95AB418A2 AT lp DOT airnews DOT net...
> > the answer I got from "Johan Venter" <jventer AT writeme DOT com was :
> >
> > "Redirect it too a file with redir:
> > redir -oe -e error.log <command>
> > So, for a simple compile example:
> > redir -oe -e error.log gcc -o test.exe test.c
> > The output will be in error log."
>
> I hope I haven't caused any confusion,

Not at all. Your slight mistake wasn't my problem. I was just explaining that I
didn't exactly know what the commands were supposed to mean.   Thanks for helping.

> it's been a while since I used redir, so
> I may have muddled the command line options (I thought above would work though,
> stdout > stderr, then stderr > error.log).

>
> >
> > I got it to work when I compiled a file but I have no idea what stdout and
> stderr
> > are. Never heard of em. What are they ?
>
> They are the standard C++ file handles for input (stdin), output (stdout) and
> error reporting (stderr). They are basically a FILE *, but they are redirected
> to hardware devices by default. stdin comes from the keyboard, stdout and stderr
> go to the screen (by default). So, when you say printf("Hello World\n"); in your
> program, you're actually printing the string to stdout.

Ok that makes sense. Thanks.

>
>
> > C:\djgpp>redir -oe -e error.log unzip32 djdev202
> > Bad command or file name
> >
> > C:\djgpp>redir -e error.log -oe unzip32 djdev202
> > Bad command or file name
> >
> > C:\djgpp>
>
> Do you actually have redir in your DJGPP/bin directory? And the DJGPP/bin
> directory on your PATH?

As it is above,
C:\djgpp>redir -e error.log -oe unzip32 djdev202
is what I wrote.
 unzip32 and djdev202 are both in  C:\djgpp so I think the answer to your questions
are yes and yes.


Rodeo Red

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019