delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/05/20:17:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A5672E7.8D4B37C3@veritas.com>
Date: Fri, 05 Jan 2001 17:20:39 -0800
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Nush Pera <nushp AT usa DOT net>
CC: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: tail -f c:\file.log" | sed -n -e "/error/p" -not working
References: <20010105093103 DOT 8551 DOT qmail AT nw175 DOT netaddress DOT usa DOT net>

I have duplicated this problem, using bash as the shell and a log file in the current directory (eliminating possible issues with the c:\ dos path).  I also ran the test on
a Solaris system.  It worked there as expected.  With cygwin, it looks like the pipe is running in a buffered mode, because when I killed the 'tail...', I got the expected
output (lines containing the word 'error').

I'm not a developer in the Cygwin project and do not have any ideas about how to make this work.  You might find additional information in the FAQ.

Nush Pera wrote:
> 
> Hello!
> When I use the command:
> 
> tail -f c:\file.log | sed -n -e "/error/p"
> 
> for see if exist some "error" in the last lines of log file c:\file.log
> it doesn't work.
> If I use
> 
> tail -10 c:\file.log | sed -n -e "/error/p"
> 
> this work but I'm interested to see if the last line it is with "error" text
> and when it is I want to execute an exe file.
> How do I do that?
> 
> Thanks a lot !
> 
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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