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. Fix: See http://aldan.algebra.com/~mi/ntee.diff.html for readable and http://aldan.algebra.com/~mi/ntee.diff for applicable patch.
Links here are still valid for the patch. :-) I am not sure if this is still worth pursuing but assigning to -net for now.
I personally like this.. we should do it.
(In reply to Julian Elischer from comment #2) adding that in this world more and more cross-machine work is encountered. This would work well with netcat.
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Wow. This would be a real nice addition. Seems simple enough to implement -- the OP already did the hard work. Why are we not adding this?
(In reply to Chris Hutchinson from comment #6) Sorry. I see the diff(s) no longer exist. The Wayback machine has no copies either. What a pity, and kind of insulting too to the author. :`(