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
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