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: <20010105093103.8551.qmail@nw175.netaddress.usa.net> Date: 5 Jan 2001 10:31:03 MET From: Nush Pera To: cygwin AT cygwin DOT com Subject: tail -f c:\file.log" | sed -n -e "/error/p" -not working X-Mailer: USANET web-mailer (34FM.0700.15.02) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA06900 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