On Jun 8, 2005, at 3:27 PM, Ed Howland wrote:
Cool. But where is /dev/tcp? I get no such file or dir, followed by bad file descriptor/

Sorry. I just realized I didn't answer your question. The script works on all the previously mentioned Linux versions. However, I just noticed that /dev/tcp is not on FC3, although it is on the others. Despite that, the script works. Go figure.

Here's a variation with a couple of ls'es inserted:

( set -x
  exec 5<>/dev/tcp/www.google.com/80
  ls -la /dev/tcp*
  ls -la /dev/fd/
  echo -e "GET / HTTP/1.0\n" >&5
  cat <&5 | head -20
)

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent


_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to