Why doesn't this work?

Paul Schmehl pschmehl_lists at tx.rr.com
Thu Jun 27 16:30:33 UTC 2013


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



More information about the freebsd-questions mailing list