public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* tail -f c:\file.log" | sed -n -e "/error/p"             -not working
@ 2001-01-05  1:31 Nush Pera
  2001-01-05  6:58 ` Larry Hall (RFK Partners, Inc)
  2001-01-05 17:16 ` Bob McGowan
  0 siblings, 2 replies; 3+ messages in thread
From: Nush Pera @ 2001-01-05  1:31 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tail -f c:\file.log" | sed -n -e "/error/p"             -not working
  2001-01-05  1:31 tail -f c:\file.log" | sed -n -e "/error/p" -not working Nush Pera
@ 2001-01-05  6:58 ` Larry Hall (RFK Partners, Inc)
  2001-01-05 17:16 ` Bob McGowan
  1 sibling, 0 replies; 3+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-01-05  6:58 UTC (permalink / raw)
  To: Nush Pera, cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tail -f c:\file.log" | sed -n -e "/error/p"             -not working
  2001-01-05  1:31 tail -f c:\file.log" | sed -n -e "/error/p" -not working Nush Pera
  2001-01-05  6:58 ` Larry Hall (RFK Partners, Inc)
@ 2001-01-05 17:16 ` Bob McGowan
  1 sibling, 0 replies; 3+ messages in thread
From: Bob McGowan @ 2001-01-05 17:16 UTC (permalink / raw)
  To: Nush Pera; +Cc: Cygwin

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@veritas.com

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-05 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-05  1:31 tail -f c:\file.log" | sed -n -e "/error/p" -not working Nush Pera
2001-01-05  6:58 ` Larry Hall (RFK Partners, Inc)
2001-01-05 17:16 ` Bob McGowan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).