更新时间:2022-04-11 01:56:51
从版本V 1.4.0.0开始,socat具有选项重试",永久"和间隔".
As of version V 1.4.0.0 socat features the options "retry", "forever", and "interval".
因此,这应该给您所需的行为:
So, this should give you the desired behavior:
socat pty,link=/dev/ttyS9 tcp:10.0.10.1:9999,forever,interval=10,fork