Use nc to write multiple files - how?

一世执手 提交于 2019-12-02 08:16:35

On the receiver:

$ nc -p 3000 -l | tar -x

On the sender:

$ tar -c * | nc <ip_address> 3000

Omit the -k and run it in a loop:

n=0
while nc -l 3000 > "$n".txt ; do
   n=$((n+1))
done

I think Cronolog can help in this case

-p option you can determine the period option

Also the filewatcher utility "incron" can be used which will check logs to one file & can split to some other files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!