bin/117733: allow to tee(1) to sockets, descriptors [patch]

Mikhail T. mi at
Wed Oct 31 20:50:02 PDT 2007

>Number:         117733
>Category:       bin
>Synopsis:       allow to tee(1) to sockets, descriptors [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 01 03:50:01 UTC 2007
>Originator:     Mikhail T.
>Release:        FreeBSD 6.2-STABLE amd64
Virtual Estates, Inc.
System: FreeBSD 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
	like /dev/stderr.

	There can be any number of these "files" specified, as long
	as they preceed the regular files on the command line.

	For example:

	tee -d 2 -t 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 mailing list