TCP server in a single line
For the love of Unix
while true; do echo "Hello world" | nc -l 1500; done
Written by Greg Osuri
Related protips
2 Responses

I think you miss something
while true; do echo "Hello world"; done | nc -l 1500
</code>
over 1 year ago
·

Updated. Thanks :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#