fn read_pipe_to_string<R>(pipe: R) -> JoinHandle<Result<String, String>>where R: Read + Send + 'static,