Reconnect socat connection after network failure
问题 I am using a socat command to create a tty interface on my embedded linux device like: socat pty,link=/dev/ttyS9 TCP:10.0.10.1:9999 The connection is a long distance connecstion over a dsl-line. This line is disconnected every night and my tty interface is down. Is it possible to create the tty interace with a mechanism to reconnect until the server side is online again? Next question: is it possible to call the socat command from a java programm? Thanks a lot! Karl-Heinz 回答1: As of version V