Replace TCP server in favour of stdin / stdout