V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
s82kd92l
V2EX  ›  Linux

有熟悉 socat 的朋友吗

  •  
  •   s82kd92l · Nov 21, 2024 · 1418 views
    This topic created in 530 days ago, the information mentioned may be changed or developed.

    我想用 socat 监听一个 udp 端口,然后把收到的包都写入到一个临时文件里面,下面这个写法运行后直接退出了,也没有任何报错。请问该怎么写呢?

    socat udp-recv:1234 OPEN:/tmp/1,create,append,ignoreeof

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:38 · PVG 02:38 · LAX 11:38 · JFK 14:38
    ♥ Do have faith in what you're doing.