Date: Wed, 19 Dec 2007 18:22:41 -0500 (EST) From: "Mikhail T." <mi@aldan.algebra.com> To: questions@FreeBSD.org Subject: tail does not exit Message-ID: <200712192322.lBJNMfps053071@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
Why does not the script below actually ever exit? #!/bin/sh if tail -f /var/log/messages | awk '{print "Exiting"; exit 0}' then echo Exited else echo Failed fi exit 0 Awk exits as advertised, but tail stays around -- even though its stdout is closed... Why? Thanks! -mi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712192322.lBJNMfps053071>