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

Mikhail T. mi at aldan.algebra.com
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 01 03:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail T.
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
Virtual Estates, Inc. http://libpipe.virtual-estates.com/
>Environment:
System: FreeBSD aldan.algebra.com 6.2-STABLE


>Description:
	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 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.

>How-To-Repeat:
	
>Fix:

	See

		http://aldan.algebra.com/~mi/ntee.diff.html

	for readable and

		http://aldan.algebra.com/~mi/ntee.diff

	for appliable patch.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list