[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash socket /dev/tcp

On Mon, Jul 03, 2006 at 11:01:06AM +0200, Andrea Ganduglia wrote:
> On 7/2/06, Mumia W. <mumia.w.18.spam+nospam@earthlink.net> wrote:
> >He is probably talking about this feature of Bash from "man bash":
> Sure, I'm talking about it. How can I obtain those device onto Debian?
> ~# cat /dev/tcp/localhost/80
> cat: /dev/tcp/localhost/80: No such file or directory

IMHO, /dev/tcp/localhost/80 is just a virtual device specific to bash.
Or you can think it as a abstract name. It doesn't really exist on the
filesystem. So you can't use cat to access this file. It can only be
read/written by bash. Like this:
	$ less < /dev/tcp/localhost/80

And this is from the bash manpage:

	NOTE: Bash, as packaged for Debian, does not support using the
	/dev/tcp and /dev/udp files.

> -- 
> Openclose.it - Idee per il software libero
> http://www.openclose.it
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org

Q:	What's hard going in and soft and sticky coming out?
A:	Chewing gum.

Reply to: