[ILUG] Bash & network programming...
Colm Buckley
colm at tuatha.org
Tue Jan 15 15:28:28 GMT 2002
On Tue 15 Jan 2002 15:13, John P. Looney wrote:
> echo "GET / HTTP/1.0\n\n"| cat < /dev/tcp/172.24.1.104/80 >
/dev/tcp/172.24.1.104/80
Bob between us and your shell scripts, Kate. There are a couple of
things wrong with the above:
* bizarre and certainly nonportable use of /dev/tcp
* two redirections of standard input to "cat"
* just, like, I mean, like.
Use wget or curl to retrieve http stuff from the CLUI, or if you want
to get down to the tcp level, "netcat" is a great little utility.
Gods.
Colm
--
Colm Buckley : Systems Architect @ NewWorld Commerce
Business: +353 1 4334334 / colm at nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
Despite the cost of living, have you noticed how it remains so popular?
More information about the ILUG
mailing list