Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make socat work with awk

Status
Not open for further replies.

xmb

Programmer
Feb 11, 2005
213
CH
subject: awk 1 doesnt work with socat socket cat
prototype: socat <socat> <socat>
manual page: example working:
#!/bin/bash
socat tcp-listen:1111,reuseaddr,fork exec:./x_httpd3 &
echo / | nc 0 1111
# result: index of my codes

example fail2fix :
#!/bin/bash
socat tcp-listen:1111,reuseaddr,fork exec:'awk 1' &
echo foo | nc 0 1111
# result = nothing, awk 1 ( print every line )
# acting : black hole
# why nowork

short : i wanna build more raw servers for fun in awk cause its more ideal, i stopped long ago cause... erm i never got socat with awk working, while ive done httpd and partly dns and stuff in bash working np with socat


help ?



. Mac for productivity
.. Linux for developement <a href='//xmb.ath.cx'>[site]</a>
... Windows for solitaire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top