From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 4 Apr 2006 14:43:12 -0500 From: Paul Hebble To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] netcat, the only stdin/stdout redirector to tcp/udp conns? Message-ID: <20060404194312.GA11874@imsa.edu> References: <4432C4EA.10204@gmail.com> <4432CA60.6010009@asgaard.homelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4432CA60.6010009@asgaard.homelinux.org> User-Agent: Mutt/1.4.1i Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 2e8f1e7c-ead1-11e9-9d60-3106f5b1d025 On Tue, Apr 04, 2006 at 09:34:56PM +0200, "Nils O. Sel=E5sdal" wrote: > Llu=EDs Batlle i Rossell wrote: > >Am I missing something? Which is the program I'm expecting to find for= =20 > >that redirection? It's always the one you least expect: Bash handles several filenames specially when they are used in redirections, as described in the following table: /dev/tcp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, bash attempts to open a TCP connection to the corresponding socket. /dev/udp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, bash attempts to open a UDP connection to the corresponding socket. (Sorry for the weird quoting, I already deleted Llu=EDs's email, so I had= to wait for another reply to get on the thread.) --=20 Paul