From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <00c71159e5d92845780d5cb9a454e165@swtch.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] netcat, the only stdin/stdout redirector to tcp/udp conns? From: "Russ Cox" Date: Tue, 4 Apr 2006 15:17:08 -0500 In-Reply-To: <4432C4EA.10204@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 2e86c15a-ead1-11e9-9d60-3106f5b1d025 > I hope this will not be any flame... but I hardly can believe that in a > normal linux/bsd distribution there isn't any tool for redirecting > stdin/stdout to a (new) tcp/udp connection. I think that > file-descriptor-fans will know something like that... we could go on for days listing completions of I hardly can believe that in a normal linux bsd distribution _____. welcome to modern unix. > The most similar program I found is 'netcat', but in all the versions > I've seen, it makes SO_LINGER with linger active, with a 0 seconds > timeout, making it unusable for a "close() after input EOT"-behaviour. > Moreover, netcat isn't a default as "ls" or "cat". > > Am I missing something? Which is the program I'm expecting to find for > that redirection? i believe you are expecting to find plan9port's dial(1). russ