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

Re: /dev/tcp/ doesn't work with bash

Andreas Sliwka <Andreas.Sliwka@de.uu.net> writes:

>   my bash ( 2.05b-7 on unstable) does not recognize the /dev/tcp
> redirect. Executing
> 	$> echo 'GET index.html' &> /dev/tcp/ 
> I get:  bash: /dev/tcp/ File not found.
> Do I have to activate it somehow? Or did I misspell it?

I've never heard of such a thing, though it's obvious what you're
trying to do.  Maybe you could try playing with netcat;

  $ sudo apt-get install netcat
  $ nc localhost 80
  GET / HTTP/1.1
  Host: localhost
  Connection: close
  HTTP/1.1 200 OK

David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell

Reply to: