[RndTbl] Shell programming question

Bill Reid billreid at shaw.ca
Mon Apr 4 10:08:58 CDT 2005


John Lange wrote:

> Any mention of how to use it as a two way communication?
> 
> What I have in mind is:
> 
> echo "GET /" > /dev/tcp/www.server.com/80
> cat < /dev/tcp/www.server.com/80 | grep somephrase
> 

 From your URL:  http://advbash.activeventure.net/devref1.html

bash$ exec 5<>/dev/tcp/www.slashdot.org/80
bash$ echo -e "GET / HTTP/1.0\n" >&5
bash$ cat <&5
	


More information about the Roundtable mailing list