I have a remote raspberrypi that uses autossh to connect to my local machine (with reverse tunnel -R). This should feed a dump1090 instance on my local machine. I'm using
/bin/nc localhost 40005 | /bin/nc localhost 30104
and it works great until the connection is good but when the link breaks the new connection isn't established. How can I make the netcat link persistent? Thanks!