From owner-freebsd-questions@FreeBSD.ORG Thu Dec 20 00:33:00 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B0D616A41B for ; Thu, 20 Dec 2007 00:33:00 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 35FD213C447 for ; Thu, 20 Dec 2007 00:32:59 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: (qmail 15661 invoked from network); 20 Dec 2007 00:06:18 -0000 Received: from aldan.algebra.com (HELO aldan-mlp) ([216.254.65.224]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Dec 2007 00:06:18 -0000 From: Mikhail Teterin To: questions@freebsd.org Date: Wed, 19 Dec 2007 19:06:15 -0500 User-Agent: KMail/1.7.1 References: <200712192322.lBJNMfps053071@aldan.algebra.com> <86abo64543.fsf@bsd.by> In-Reply-To: <86abo64543.fsf@bsd.by> Organization: Virtual Estates, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200712191906.16254.mi+mill@aldan.algebra.com> Cc: Subject: Re: tail does not exit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 00:33:00 -0000 Max N. Boyarov: > =9A =9A =9A -f =9A =9A =9AThe -f option causes tail to not stop when end = of file is > =9A =9A =9A =9A =9A =9A =9Areached, but rather to wait for additional dat= a to be appended > to the input. =9AThe -f option is ignored if the standard input is a pipe, > but not if it is a FIFO. Josh Tolbert: > Cause the -f option to tail doesn't work that way. -f always waits for mo= re > input. I know very well about -f waiting for more *input*. What puzzles me, is tha= t=20 tail does not quit, when its *output* is closed. James Harrison: > Is there a reason you want the -f flag? Yes, I want awk to be processing the lines, which are appended to the file,= =20 until it finds, what it is looking for, and exits. I expect tail to go away= ,=20 when its stdout is closed, but it does not. > tail -f holds on for dear life until a ctrl-c happens. IT HAS A DEATH > GRIP! This seems like a bug to me... It should hold on to its input file(s), but= =20 exit peacefully, when its stdout closes. No? -mi