I have a script where I would like to start
nc in listening mode on
10.10.10.11, but I would like to do it from
10.10.10.10, where I have this script
ssh -n 10.10.10.11 nc -l 8023 | mbuffer -s 128k -m 1G | zfs receive $zfsPath zfs send $newestSnap | mbuffer -s 128k -m 1G | nc -w 60 10.10.10.11 8023
The problem is, that if I execute the script from
10.10.10.10 then it won't continue after the first line have been executed, because
nc is now waiting/listening for a connection on port 8023.
I would like to execute the above from
10.10.10.10, but how do I get it to continue after the first line?