This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: tail -f c:\file.log" | sed -n -e "/error/p" -not working
- To: Nush Pera <nushp at usa dot net>,cygwin at cygwin dot com
- Subject: Re: tail -f c:\file.log" | sed -n -e "/error/p" -not working
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Fri, 05 Jan 2001 09:54:21 -0500
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@rfk.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