Use nc to write multiple files - how?

前端 未结 3 1878
误落风尘
误落风尘 2021-01-28 06:31

I want to use nc as a simple TCP/IP server. So far I run it using:

$ nc -k -l 3000 > temp.tmp

This works, but writes all the re

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-28 07:29

    On the receiver:

    $ nc -p 3000 -l | tar -x
    

    On the sender:

    $ tar -c * | nc  3000
    

提交回复
热议问题