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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to