delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/02/07:35:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Fri, 2 Mar 2012 16:21:01 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1103466151.20120302162101@mtu-net.ru>
To: Paul Allen Newell <pnewell AT cs DOT cmu DOT edu>, cygwin AT cygwin DOT com
Subject: Re: question on Cygwin's version of make
In-Reply-To: <4F502104.4050408@cs.cmu.edu>
References: <4F4F21AC DOT 7060209 AT cs DOT cmu DOT edu> <CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ AT mail DOT gmail DOT com> <CAEhDDbCA2YSUfyqNZaTfxgg_f43YgeuPZOS=Z6cyvMVeP5cDkQ AT mail DOT gmail DOT com> <CAB8Xom-x_um2yRi46r-enu=iJZUe-N2HR_tvf-25VFXBFHOsqQ AT mail DOT gmail DOT com> <4F502104 DOT 4050408 AT cs DOT cmu DOT edu>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Greetings, Paul Allen Newell!

>>>>> I also noticed that if I run "make>&  make.out" that the message is printed
>>>>> to the terminal and is not in make.out. What am I missing to capture all
>>>>> output in make.out?
>>>> I like this way
>>>>
>>>> make&2>1  |tee make.out
>>>>
>>>> "&2>1"  redirect the error message to the std output
>>> Shouldn't that be
>>>
>>> make 2>&1 | tee make.out
>> yes correct,
>> typo from my side
>>
>> Paul,
>> looks on
>> http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
>> http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/io-redirection.html
>>
>> for further info.

> I looked in the first suggested link and found what my problem is. Item 
> #3.6 is
> +++
> This will place every output of a program to a file. This is suitable 
> sometimes for cron entries, if you want a command to pass in absolute 
> silence.

>              rm -f $(find / -name core) &> /dev/null
> +++

> This is what I am doing and my problem is basename is sending its 
> error/warning to the screen and ignoring my "&>". Yes, I know my email 
originally stated ">>&", but it doesn't seem to matter what the order is 
> for basename to ignore it.

> What am I not understanding in what the link says versus the actions I 
> am seeing?

I'm abit lost in your loops.
In case of redirecting your output to tee... man tee.


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 02.03.2012, <16:19>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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