Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" 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 Content-Type: text/plain; charset="us-ascii" 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