网站介绍:文章浏览阅读121次。需要把线上的access日志发送到另一个程序接收开始想着用python实现,虽然python也有实现类似tail -F的方式,但太麻烦,而且效率也有折扣偶然发现了shell可以实现网络client,并且只用几行代码就可以实现先上代码:trap "exec 8&-" 0file='/data/nginx/llogs/access.log'exec 8<>/dev/tcp/10.3...
- 链接地址:https://blog.csdn.net/weixin_36406678/article/details/116839685
- 链接标题:linux client网络,shell实现网络client方法_苹果岛的博客-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1353
- 网站标签:linux client网络 shell实现网络client方法