bin/117733: allow to tee(1) to sockets, descriptors [patch]
mi at aldan.algebra.com
Wed Oct 31 20:50:02 PDT 2007
>Synopsis: allow to tee(1) to sockets, descriptors [patch]
>Arrival-Date: Thu Nov 01 03:50:01 UTC 2007
>Originator: Mikhail T.
>Release: FreeBSD 6.2-STABLE amd64
Virtual Estates, Inc. http://libpipe.virtual-estates.com/
System: FreeBSD aldan.algebra.com 6.2-STABLE
The proposed patch would allow tee to be used to send data
to TCP or UDP sockets, as well as to the already opened
file-descriptors (such as 2) without resorting to hacks
There can be any number of these "files" specified, as long
as they preceed the regular files on the command line.
tee -d 2 -t www.example.com 80 -u localhost 1081 log1.txt log2.txt
The patch also modifies the usage() handling to exit with 0,
when help was requested (-h), and with EX_USAGE otherwise.
for readable and
for appliable patch.
More information about the freebsd-bugs