Date: Wed, 31 Oct 2007 20:51:38 -0500 (EST) From: "Mikhail T." <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/117733: allow to tee(1) to sockets, descriptors [patch] Message-ID: <200711010151.lA11pcDP048540@aldan.algebra.com> Resent-Message-ID: <200711010350.lA13o1HO076977@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711010151.lA11pcDP048540>