In my tests (server running Ubuntu 12.04;, clients running Ubuntu 10.04), your solution didn't work.
Fortunately, I rapidly realized that socat exits with code 0 when I disconnect the server, thus I removed the "!"s in while clauses. Now the automatic reconnection works.
Alkis,
In my tests (server running Ubuntu 12.04;, clients running Ubuntu 10.04), your solution didn't work.
Fortunately, I rapidly realized that socat exits with code 0 when I disconnect the server, thus I removed the "!"s in while clauses. Now the automatic reconnection works.
Thanks a lot!