From owner-freebsd-questions@FreeBSD.ORG Thu Jun 27 17:02:29 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8D872C3A for ; Thu, 27 Jun 2013 17:02:29 +0000 (UTC) (envelope-from markham_breitbach@ssimicro.com) Received: from mail.ssimicro.com (mail.ssimicro.com [64.247.129.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0BD1E127E for ; Thu, 27 Jun 2013 17:02:28 +0000 (UTC) Received: from markham.ssimicro.com (markham.ssimicro.com [64.247.130.99]) by mail.ssimicro.com (8.14.4/8.14.5) with ESMTP id r5RGhHjc015733 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Thu, 27 Jun 2013 10:43:18 -0600 (MDT) Message-ID: <51CC6BA5.9040003@ssimicro.com> Date: Thu, 27 Jun 2013 10:43:17 -0600 From: markham breitbach User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Paul Schmehl Subject: Re: Why doesn't this work? References: <490C0497718DA8BC80E42A15@localhost> In-Reply-To: <490C0497718DA8BC80E42A15@localhost> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Freebsd Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 17:02:29 -0000 logger logs to syslog, so unless you have user.notice logging to /var/log/testing.log this will probably not do what you are expecting. Have a look in /var/log/messages for something like this. Jun 27 16:38:03 xxx-hostname base_http_access: /var/log/testing.log Otherwise, you may want to setup /etc/syslog.conf to log one of the local facilities to /var/log/testing.log with something like this: local6.* /var/log/testing.log you will need to touch /var/log/testing.log and restart syslog, then change your script to something like this: echo "Testing, testing, testing" |/usr/bin/tee -a /var/log/httpd-access.log |/usr/bin/logger -t base_http_access -p local6.info Don't forget to update newsyslog.conf to rotate your new testing.log -Markham On 13-06-27 10:29 AM, Paul Schmehl wrote: > echo "Testing, testing, testing" |/usr/bin/tee -a /var/log/httpd-access.log > |/usr/bin/logger -t base_http_access /var/log/testing.log > > This writes to the httpd-access.log but does not write to /var/log/testing.log. I'm > probably reading the man page incorrectly, but I thought this should work. For some > reason absolutely nothing is being passed from tee to logger. > > What am I missing? >