Sep 28, 2010

Bash Socket Programming


exec 3<>/dev/tcp/myhomesite.com/80
echo -e "GET / HTTP/1.1\nHost: myhomesite.com\n\n" >&3
cat <&3


Originally from:
http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/

No comments: