I came across a way to create a network socket using bash:
(
# set -x # uncomment for details
exec 5<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.0\n" >&5
cat <&5 | head -20
)
which is equivalent to this lynx command:
lynx -mime_header http://www.google.com | head -20
While this isn't very exciting, it could be useful for testing
network connections on machines that don't have lynx.
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/