delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/19/23:01:50

From: Rodeo Red <rodeored AT netstep DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Read Me Third: A Short FAQ List
Date: Tue, 19 Oct 1999 20:50:31 -0400
Organization: Church of Evangelical Environmental Extremism
Lines: 95
Message-ID: <E74AC92C3E4A9C9C.4E994DD3148FBF35.FA4770D95AB418A2@lp.airnews.net>
X-Orig-Message-ID: <380D11D6 DOT AF4234A2 AT netstep DOT net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991019131856 DOT 13375B-100000 AT is>
Abuse-Reports-To: support at netstep.net to report improper postings
NNTP-Proxy-Relay: library2.airnews.net
NNTP-Posting-Time: Tue Oct 19 19:50:16 1999
NNTP-Posting-Host: !]P0F-@[0:Qb#I- (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

Eli Zaretskii wrote:

> On Mon, 18 Oct 1999, Rodeo Red wrote:
> > It appears to unzip ok with the comand :
> > unzip32 djdev202
> > but there's warnings or error messages or something I can't read because it
> > goes by so fast.
>
> Try pressing Ctrl-S.
>

Ok that helps.

C:\djgpp>unzip32 djdev202
Warning: TZ environment variable not found, cannot use UTC times!!
Archive:  djdev202.zip
  inflating: bin/bin2h.exe
  inflating: bin/coff2exe.exe

 etc. etc. etc.
All the files appear unzipped, but what does this warning mean. ? I'm just trying
to make sure everything is working right.


>
> > So I tried to redirect the message to error.log:
> >
> > C:\djgpp>redir -oe -e error.log unzip32 djdev202
> > Bad command or file name
> >
> > Why doesn't this redirect work ?
>
> I don't know.  I tried the exact command above, and it worked for me.
> Are you sure this was the *exact* command you typed?

Yes it was copied and pasted directly from my Dos box exactly as it appears
above. . I think I can get to use unzip32 without solving this particalar dilemma
right now, but I would still like to find out why the redirect doesn't work.

>
>
> Btw, if by "-oe -e error.log" you meant to redirect both stdout and
> stderr to error.log, then you were wrong.

I have no idea what you're talking about. Last week I asked

>How do I copy
> the entire contents of the dos box into the clipboard ?

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 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 ?

> The handles

Handles ? Whats a handle ?

> are redirected in
> the order you mention them on the command line, so the above redirects
> stdout to the console, because that's where stderr is initially, then
> redirects stderr to a file.  You need to do it the other way around:
>
>         redir -e error.log -oe unzip32 djdev202

Neither works
This is cut and pasted directly from my Dos box :

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>



>
> This is explained in the redir docs.

Not in a way that I can understand. I did read
http://www.delorie.com/djgpp/doc/utils/utils_7.html
about redir seven or eight times and I'm still lost. I'm hoping once I am able to
get things working maybe I can learn more by experimentation, but I haven't
gotten to that point yet.

Red

- Raw text -


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