Cool. But where is /dev/tcp? I get no such file or dir, followed by bad
file descriptor/
If you can make this portable, pls add to Cribs section.
Tx
Robert Citek wrote:
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/
--
Ed Howland
WDT Solutions, LLC.
[EMAIL PROTECTED]
(314) 962-0766
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/