How to make an Echo server with Bash?

后端 未结 5 1456
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 20:58

How to write a echo server bash script using tools like nc, echo, xargs, etc capable of simultaneously processing requests from multiple clients each with durable connection

5条回答
  •  [愿得一人]
    2020-12-12 21:21

    what about...

    #! /bin/sh
    
    while :; do
    /bin/nc.traditional -k -l -p 3342 -c 'xargs -n1 echo'
    done
    

提交回复
热议问题