delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/06/18:06:16

Date: Sun, 6 Jul 1997 23:03:34 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
Message-Id: <199707062203.XAA22675@sable.ox.ac.uk>
To: jdashiel AT eagle1 DOT eaglenet DOT com (Jude DaShiell)
Cc: djgpp AT delorie DOT com
Subject: Re: redir question
Organization: Oxford University, England

In article <Pine DOT NXT DOT 3 DOT 95 DOT 970705125226 DOT 18363A-100000 AT eagle1> Jude DaShiell 
wrote:

: Is it possible using redir.exe to cause all output from stdout and
: all utput from stderr to be caught in a single log file?  From reading the useage info
: both isn't mentioned in that documentation.  Just now i tried:
: redir -o tests.log -e tests.log makeall <cr>
: to try and test the installation of djgpp.  tests.log came back with 0k length
: so that particular method doesn't work.

The redir utility parses options in the order they appear, so:

redir -o tests.log -eo makeall

Then redir directs all output to tests.log, and then directs all errors to
wherever the output is going. So they both go to tests.log. The order is
important I think.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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