Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2013 11:29:19 -0500
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        Freebsd Questions <freebsd-questions@freebsd.org>
Subject:   Why doesn't this work?
Message-ID:  <490C0497718DA8BC80E42A15@localhost>

Next in thread | Raw E-Mail | Index | Archive | Help
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?

-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?490C0497718DA8BC80E42A15>