delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/05/10:00:46

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: <4.3.1.2.20010105095240.00a8cc08@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Fri, 05 Jan 2001 09:54:21 -0500
To: Nush Pera <nushp AT usa DOT net>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: tail -f c:\file.log" | sed -n -e "/error/p"
-not working
In-Reply-To: <20010105093103.8551.qmail@nw175.netaddress.usa.net>
Mime-Version: 1.0

At 04:31 AM 1/5/2001, 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?


tail -1 c:\file.log | sed -n -e "/error/p", no?



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



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